Home
last modified time | relevance | path

Searched refs:file (Results 1 – 18 of 18) sorted by relevance

/DADK/dadk-config/templates/config/
H A Dboot.toml30 grub-file = "/opt/dragonos-grub/arch/i386/legacy/grub/bin/grub-file"
35 grub-file = "/opt/dragonos-grub/arch/i386/efi/grub/bin/grub-file"
40 grub-file = "/opt/dragonos-grub/arch/x86_64/efi/grub/bin/grub-file"
51 # URL to download U-Boot binary file
60 # Prefix directory for U-Boot binary file
65 # then the path to locate the U-Boot binary file would be: `bin/uboot/riscv64/v2023.10/uboot.bin`
/DADK/dadk-user/src/executor/
H A Dtarget.rs
H A Dsource.rs13 use crate::utils::{file::FileUtils, stdio::StdioUtils};
472 return Err(Error::msg(format!("path {:?} is not a file", self.path))); in validate()
551 info!("Source files already exist. Using previous source file cache. You should clean {:?} before re-download the archive ", target_dir.path); in download_unzip()
619 " {:?} is not a file", in unzip()
645 let file = File::open(&self.archive_path.join(&self.archive_name)) in unzip()
647 let mut archive = ZipArchive::new(file).map_err(|e| e.to_string())?; in unzip()
649 let mut file = archive.by_index(i).map_err(|e| e.to_string())?; in unzip()
650 let outpath = match file.enclosed_name() { in unzip()
654 if (*file.name()).ends_with('/') { in unzip()
663 std::io::copy(&mut file, in unzip()
637 let file = File::open(&self.archive_path.join(&self.archive_name)) unzip() localVariable
641 let mut file = archive.by_index(i).map_err(|e| e.to_string())?; unzip() localVariable
[all...]
H A Dsource.rs13 use crate::utils::{file::FileUtils, stdio::StdioUtils};
645 let file = File::open(&self.archive_path.join(&self.archive_name)) in unzip() localVariable
647 let mut archive = ZipArchive::new(file).map_err(|e| e.to_string())?; in unzip()
649 let mut file = archive.by_index(i).map_err(|e| e.to_string())?; in unzip() localVariable
650 let outpath = match file.enclosed_name() { in unzip()
654 if (*file.name()).ends_with('/') { in unzip()
663 std::io::copy(&mut file, &mut outfile).map_err(|e| e.to_string())?; in unzip()
668 if let Some(mode) = file.unix_mode() { in unzip()
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
H A Dmod.rs22 utils::{file::FileUtils, path::abs_path},
/DADK/dadk-user/src/utils/
H A Dmod.rs1 pub mod file; module
H A Dmod.rs1 pub mod file; module
H A Dfile.rs26 let mut file = File::create(path.join(file_name))?; in download_file() localVariable
27 response.copy_to(&mut file)?; in download_file()
H A Dfile.rs26 let mut file = File::create(path.join(file_name))?; in download_file() localVariable
27 response.copy_to(&mut file)?; in download_file()
/DADK/.github/
H A Ddependabot.yml4 …de-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
/DADK/dadk/src/actions/rootfs/
H A Ddisk_img.rs229 let mut file = File::create(disk_image_path)?; in create_raw_img() localVariable
232 file.set_len(image_size.try_into().unwrap())?; in create_raw_img()
240 file.write_all(&zero_buffer[..write_size as usize])?; in create_raw_img()
380 let mut file = File::open(&disk_image_path)?; in test_create_raw_img_functional() localVariable
384 while file.read(&mut buffer)? > 0 { in test_create_raw_img_functional()
/DADK/
H A DLICENSE289 to attach them to the start of each source file to most effectively
290 convey the exclusion of warranty; and each file should have at least