(path: &Path)
| 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)?; |
no outgoing calls
no test coverage detected