Skip to content

Commit a9431d7

Browse files
committed
Do not use colons in filenames on windows
1 parent 4433009 commit a9431d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/filewriter.rs

+3
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ impl<'a> FileWriter {
392392
)?
393393
}
394394

395+
#[cfg(not(windows))]
395396
let now = strftime("%F-%T", &now())?;
397+
#[cfg(windows)]
398+
let now = strftime("%F-%H_%M_%S", &now())?;
396399
let enumeration = e.map(|a| format!("-{:03}", a)).unwrap_or("".to_owned());
397400
let filename = self.filename
398401
.file_name()

0 commit comments

Comments
 (0)