[−][src]Struct gvfs::vfs::ZipFS
A filesystem backed by a zip file.
Methods
impl ZipFS
[src]
pub fn new(filename: &Path) -> Result<Self>
[src]
Make new VFS from a zip file
pub fn from_read<R>(reader: R) -> Result<Self> where
R: Read + Seek + 'static,
[src]
R: Read + Seek + 'static,
Creates a ZipFS
from any Read+Seek
object, most useful with an
in-memory std::io::Cursor
.
Trait Implementations
impl VFS for ZipFS
[src]
fn open_options(
&self,
path: &Path,
open_options: OpenOptions
) -> Result<Box<dyn VFile>>
[src]
&self,
path: &Path,
open_options: OpenOptions
) -> Result<Box<dyn VFile>>
fn mkdir(&self, path: &Path) -> Result
[src]
fn rm(&self, path: &Path) -> Result
[src]
fn rmrf(&self, path: &Path) -> Result
[src]
fn exists(&self, path: &Path) -> bool
[src]
fn metadata(&self, path: &Path) -> Result<Box<dyn VMetadata>>
[src]
fn read_dir(
&self,
path: &Path
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
[src]
&self,
path: &Path
) -> Result<Box<dyn Iterator<Item = Result<PathBuf>>>>
Zip files don't have real directories, so we (incorrectly) hack it by just looking for a path prefix for now.
fn to_path_buf(&self) -> Option<PathBuf>
[src]
fn open(&self, path: &Path) -> Result<Box<dyn VFile>>
[src]
Open the file at this path for reading
fn create(&self, path: &Path) -> Result<Box<dyn VFile>>
[src]
Open the file at this path for writing, truncating it if it exists already
fn append(&self, path: &Path) -> Result<Box<dyn VFile>>
[src]
Open the file at this path for appending, creating it if necessary
impl Debug for ZipFS
[src]
Auto Trait Implementations
impl !Sync for ZipFS
impl Unpin for ZipFS
impl !Send for ZipFS
impl !UnwindSafe for ZipFS
impl !RefUnwindSafe for ZipFS
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,