MCPcopy Create free account
hub / github.com/Nariod/RustPacker / create_root_folder

Function create_root_folder

src/puzzle.rs:50–59  ·  view source on GitHub ↗
(parent: &Path)

Source from the content-addressed store, hash-verified

48}
49
50fn create_root_folder(parent: &Path) -> Result<PathBuf, Box<dyn std::error::Error>> {
51 let timestamp = SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs();
52 let folder_name = format!("output_{}", timestamp);
53 println!("[+] Creating output folder: {}", &folder_name);
54
55 let result_path = parent.join(folder_name);
56 fs::create_dir(&result_path)?;
57
58 Ok(result_path)
59}
60
61fn copy_template(source: &Path, dest: &Path) -> Result<(), Box<dyn std::error::Error>> {
62 let options = CopyOptions {

Callers 1

assembleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected