FileSystem

Trait FileSystem 

Source
pub trait FileSystem
where Self: Sync + Send,
{ // Required method fn root(&self) -> Option<Directory>; }
Expand description

Trait representing a filesystem.

This trait provides access to the root directory of the filesystem, allowing operations on files and directories.

Required Methods§

Source

fn root(&self) -> Option<Directory>

Retrieves the root directory of the filesystem.

§Returns
  • Some(Directory): A reference to the root directory if available.
  • None: If the root directory is inaccessible or the filesystem is uninitialized.

Implementors§