Expand description
File and file system access
Structs§
- DirTable
- The table of open directories. Curiously, Unix/POSIX does not unify this into the “file descriptor” concept… everything is a file, except a directory is not?
- File
Handle 🔒 - File
Metadata 🔒 - Stores a file’s metadata in order to avoid code duplication in the different metadata related shims.
- OpenDir 🔒
- An open directory, tracked by DirHandler.
Traits§
Functions§
- extract_
sec_ 🔒and_ nsec - Extracts the number of seconds and nanoseconds elapsed between
time
and the unix epoch whentime
is Ok. ReturnsNone
iftime
is an error. Fails iftime
happens before the unix epoch. - maybe_
sync_ 🔒file