Fix UUID-Filename creating, add debug output
This commit is contained in:
parent
296136fca5
commit
c90d0ab34a
1 changed files with 4 additions and 1 deletions
|
@ -78,9 +78,12 @@ pub fn create(rt: &Runtime) {
|
||||||
error!("File does exist, cannot create/override");
|
error!("File does exist, cannot create/override");
|
||||||
exit(1);
|
exit(1);
|
||||||
} else if fl.is_dir() {
|
} 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()
|
let file = OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
.create_new(true)
|
.create_new(true)
|
||||||
|
|
Loading…
Reference in a new issue