Struct FileSystem
Source pub struct FileSystem {
_p: (),
}
Expand description
A global file system abstraction.
The FileSystem struct provides an interface for interacting with the file
system, including operations such as opening and creating files.
§Example
let fs = file_system();
if let Some(file) = fs.open("example.txt") {
println!("Opened file: {}", file.name());
}
Retrieves the root directory of the filesystem.
§Returns
Directory: A reference to the root directory.
Register the global file system.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.