start with init command

This commit is contained in:
grimhilt committed 2023-05-31 23:08:33 +02:00
1 parent 66ee1e9191
commit 9341a6db7b
8 files changed
+193 -97

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
use std::fs::DirBuilder;
pub fn init() {
let builder = DirBuilder::new();
match builder.create("./test/dir") {
Ok(()) => println!("Directory successfuly created"),
Err(_) => println!("Error: cannot create directory"),
}
}