pub struct Directory<E: Debug, IO: IO<Error = E>> { /* private fields */ }Implementations§
source§impl<E: Debug, IO: IO<Error = E>> Directory<E, IO>
impl<E: Debug, IO: IO<Error = E>> Directory<E, IO>
sourcepub fn walk<H>(&mut self, h: H) -> Result<Option<EntrySet>, Error<E>>where
H: FnMut(&EntrySet) -> bool,
pub fn walk<H>(&mut self, h: H) -> Result<Option<EntrySet>, Error<E>>where
H: FnMut(&EntrySet) -> bool,
Walk through directory, including not inuse entries
sourcepub fn find(&mut self, name: &str) -> Result<Option<EntrySet>, Error<E>>
pub fn find(&mut self, name: &str) -> Result<Option<EntrySet>, Error<E>>
Find a file or directory matching specified name
sourcepub fn touch(
&mut self,
datetime: DateTime,
opts: TouchOptions
) -> Result<(), Error<E>>
pub fn touch(
&mut self,
datetime: DateTime,
opts: TouchOptions
) -> Result<(), Error<E>>
Change current directory timestamp
sourcepub fn open(
&mut self,
entryset: &EntrySet
) -> Result<FileOrDirectory<E, IO>, Error<E>>
pub fn open(
&mut self,
entryset: &EntrySet
) -> Result<FileOrDirectory<E, IO>, Error<E>>
Open a file or directory