Lines Matching defs:file
13 use crate::utils::{file::FileUtils, stdio::StdioUtils};
472 return Err(Error::msg(format!("path {:?} is not a file", self.path)));
551 info!("Source files already exist. Using previous source file cache. You should clean {:?} before re-download the archive ", target_dir.path);
619 " {:?} is not a file",
645 let file = File::open(&self.archive_path.join(&self.archive_name))
647 let mut archive = ZipArchive::new(file).map_err(|e| e.to_string())?;
649 let mut file = archive.by_index(i).map_err(|e| e.to_string())?;
650 let outpath = match file.enclosed_name() {
654 if (*file.name()).ends_with('/') {
663 std::io::copy(&mut file, &mut outfile).map_err(|e| e.to_string())?;
668 if let Some(mode) = file.unix_mode() {