MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / create_dir_if_nonexist

Function create_dir_if_nonexist

src/deopt.rs:638–641  ·  view source on GitHub ↗

create the directory if it does not exist

(path: &Path)

Source from the content-addressed store, hash-verified

636
637 /// create the directory if it does not exist
638 pub fn create_dir_if_nonexist(path: &Path) -> Result<()> {
639 std::fs::create_dir_all(path)?;
640 Ok(())
641 }
642
643 /// read the directory and sort the entries by the alphabet oder
644 pub fn read_sort_dir(dir: &Path) -> Result<Vec<PathBuf>> {

Callers 15

get_crate_output_dirMethod · 0.85
get_crate_build_dirMethod · 0.85
get_library_build_dirMethod · 0.85
get_library_adg_dirMethod · 0.85
get_library_seed_dirMethod · 0.85
get_library_misc_dirMethod · 0.85
get_library_work_dirMethod · 0.85

Calls

no outgoing calls

Tested by 1