pub trait DirBuilder {
    fn create(self, path: &str, filetype: FileType) -> Self;
    fn remove(self, path: &str) -> Self;
    fn path(&self, path: &str) -> PathBuf;
    fn root(&self) -> &Path;
}
Expand description

File structure builder trait

Required methods

Create a file or directory under the path

Remove a file or directory under the path

Prefix path with the current context of the DirBuilder

Return the root path to the temporary directory

Implementors