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

Function get_file_dirname

src/deopt.rs:798–804  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

796 }
797
798 pub fn get_file_dirname(path: &Path) -> PathBuf {
799 if path.is_dir() {
800 return PathBuf::from(path);
801 }
802 let dir = path.parent().unwrap();
803 PathBuf::from(dir)
804 }
805
806 pub fn copy_corpus(from_dir: &Path, to_dir: &Path) -> Result<()> {
807 crate::deopt::utils::create_dir_if_nonexist(to_dir)?;

Calls

no outgoing calls

Tested by

no test coverage detected