Skip to content

Commit

Permalink
fix: dir init
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Nov 30, 2024
1 parent c8bce03 commit cbd1ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/bin/costs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ async fn main() -> Result<()> {
.concat();

let filename = format!("{}-{}-{}.csv", args.month, args.year, args.from_address);
let file = std::fs::File::create(format!("filtered_transactions/{}", filename))?;
fs::create_dir_all("filtered_transactions")?;
let file = std::fs::File::create(format!("filtered_transactions/{}", filename))?;
let mut csv_writer = csv::Writer::from_writer(file);

println!(
Expand Down

0 comments on commit cbd1ee1

Please sign in to comment.