Skip to content

Commit

Permalink
馃悰 ensure down files are empty when created
Browse files Browse the repository at this point in the history
  • Loading branch information
Odonno committed Jun 5, 2023
1 parent d433078 commit 1fa182d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn main(args: CreateArgs) -> Result<()> {
ensures_folder_exists(&down_folder_path)?;

let down_file_path = down_folder_path.join(&filename);
fs_extra::file::write_all(down_file_path, &content)?;
fs_extra::file::write_all(down_file_path, "")?;
}

println!("File {} created successfully", filename);
Expand Down

0 comments on commit 1fa182d

Please sign in to comment.