pub struct ArchiveExtractor;Expand description
Archive extractor for handling compressed files
Implementations§
Source§impl ArchiveExtractor
impl ArchiveExtractor
Sourcepub fn is_archive(path: &Path) -> bool
pub fn is_archive(path: &Path) -> bool
Check if a file is a supported archive format
Sourcepub fn is_archive_url(url: &str) -> bool
pub fn is_archive_url(url: &str) -> bool
Check if a URL points to an archive file
Sourcepub fn extract_archive(
archive_path: &Path,
dest_dir: &Path,
) -> Result<Vec<PathBuf>>
pub fn extract_archive( archive_path: &Path, dest_dir: &Path, ) -> Result<Vec<PathBuf>>
Extract archive to destination directory and return list of extracted executables
Sourcepub fn find_executables_in_dir(dir: &Path) -> Result<Vec<PathBuf>>
pub fn find_executables_in_dir(dir: &Path) -> Result<Vec<PathBuf>>
Find all executable files in a directory (non-recursive)
Sourcepub fn generate_shim_name(
executable_path: &Path,
existing_names: &[String],
) -> String
pub fn generate_shim_name( executable_path: &Path, existing_names: &[String], ) -> String
Generate a unique name for an executable based on its filename
Auto Trait Implementations§
impl Freeze for ArchiveExtractor
impl RefUnwindSafe for ArchiveExtractor
impl Send for ArchiveExtractor
impl Sync for ArchiveExtractor
impl Unpin for ArchiveExtractor
impl UnwindSafe for ArchiveExtractor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more