pub struct Paths {
pub archive: PathBuf,
pub journal: PathBuf,
pub tail: PathBuf,
pub folders: PathBuf,
pub stub: Option<PathBuf>,
}Fields§
§archive: PathBufThe first volume of the archive the side files belong to.
journal: PathBuf§tail: PathBuf§folders: PathBuf§stub: Option<PathBuf>For a native split ZIP, where its stub journal goes, next to its
.zip; see [STUB_VERSION].
Implementations§
Source§impl Paths
impl Paths
pub fn for_archive(archive: &Path) -> Self
Sourcepub fn check_stub(&self) -> Result<()>
pub fn check_stub(&self) -> Result<()>
Refuses a native split ZIP whose stub name holds anything but a stub:
the journal of an extraction of its .zip opened on its own, before
the other parts were next to it. A stub written over it would lose
the only record of what that run extracted and freed.
Sourcepub fn remove_stub(&self) -> Result<()>
pub fn remove_stub(&self) -> Result<()>
Removes the stub journal, if that is what is at its name: a journal
of a .zip of the same name extracted on its own stays.
pub fn exists(&self) -> bool
Sourcepub fn any_exist(&self) -> bool
pub fn any_exist(&self) -> bool
Whether any progress file is at its name: the journal, its tail or folder list, or a split ZIP’s stub. A link counts, even a dangling one.
pub fn remove(&self) -> Result<()>
Auto Trait Implementations§
impl Forget for Paths
impl Freeze for Paths
impl Move for Paths
impl RefUnwindSafe for Paths
impl Send for Pathswhere
RawVecInner: Send,
impl Sync for Pathswhere
RawVecInner: Sync,
impl Unpin for Paths
impl UnsafeUnpin for Paths
impl UnwindSafe for Pathswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more