pub struct DirectoryBundleFile<'a> { /* private fields */ }
Expand description
Represents a file in a DirectoryBundle.
Implementations§
Source§impl<'a> DirectoryBundleFile<'a>
impl<'a> DirectoryBundleFile<'a>
Sourcepub fn absolute_path(&self) -> &Path
pub fn absolute_path(&self) -> &Path
Absolute path to this file.
Sourcepub fn relative_path(&self) -> &Path
pub fn relative_path(&self) -> &Path
Relative path within the bundle to this file.
Sourcepub fn is_info_plist(&self) -> bool
pub fn is_info_plist(&self) -> bool
Whether this is the Info.plist
file.
Sourcepub fn is_main_executable(&self) -> Result<bool>
pub fn is_main_executable(&self) -> Result<bool>
Whether this is the main executable for the bundle.
Sourcepub fn is_code_resources_xml_plist(&self) -> bool
pub fn is_code_resources_xml_plist(&self) -> bool
Whether this is the _CodeSignature/CodeResources
XML plist file.
Sourcepub fn is_notarization_ticket(&self) -> bool
pub fn is_notarization_ticket(&self) -> bool
Whether this is the CodeResources
file holding the notarization ticket.
Sourcepub fn is_in_code_signature_directory(&self) -> bool
pub fn is_in_code_signature_directory(&self) -> bool
Whether this file is in the code signature directory.
Sourcepub fn symlink_target(&self) -> Result<Option<PathBuf>>
pub fn symlink_target(&self) -> Result<Option<PathBuf>>
Obtain the symlink target for this file.
If None
, the file is not a symlink.
Sourcepub fn metadata(&self) -> Result<Metadata>
pub fn metadata(&self) -> Result<Metadata>
Obtain metadata for this file.
Does not follow symlinks.
Sourcepub fn as_file_entry(&self) -> Result<FileEntry>
pub fn as_file_entry(&self) -> Result<FileEntry>
Convert this instance to a FileEntry.
Auto Trait Implementations§
impl<'a> Freeze for DirectoryBundleFile<'a>
impl<'a> RefUnwindSafe for DirectoryBundleFile<'a>
impl<'a> Send for DirectoryBundleFile<'a>
impl<'a> Sync for DirectoryBundleFile<'a>
impl<'a> Unpin for DirectoryBundleFile<'a>
impl<'a> UnwindSafe for DirectoryBundleFile<'a>
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