Trait tc_transact::fs::DirCreate

source ·
pub trait DirCreate: DirRead {
    fn create_dir(&mut self, name: PathSegment) -> TCResult<Self::Lock>;
    fn create_dir_unique(&mut self) -> TCResult<Self::Lock>;

    fn get_or_create_dir(&mut self, name: PathSegment) -> TCResult<Self::Lock> { ... }
}
Expand description

A write lock on a Dir used to create a subdirectory

Required Methods§

Create a new Dir.

Create a new Dir with a new unique ID.

Provided Methods§

Get the Dir with the given name and create a new one if none exists.

Implementors§