Fix UUID-Filename creating, add debug output

This commit is contained in:
Matthias Beyer 2017-11-08 17:21:57 +01:00
parent 296136fca5
commit c90d0ab34a

View file

@ -78,9 +78,12 @@ pub fn create(rt: &Runtime) {
error!("File does exist, cannot create/override");
exit(1);
} else if fl.is_dir() {
fl.set_file_name(Uuid::new_v4().hyphenated().to_string());
fl.push(Uuid::new_v4().hyphenated().to_string());
info!("Creating file: {:?}", fl);
}
debug!("Destination = {:?}", fl);
let file = OpenOptions::new()
.write(true)
.create_new(true)