Expand description
Filesystem-oriented low-level helpers.
This module contains lightweight Linux and Android file probes and helpers that are useful near the OS boundary, including path existence checks and page-cache read-ahead hints.
Structs§
Functions§
- mmap_
madvise - Map a file range, advise the kernel that it will be needed, then unmap it.
- path_
exists - Probe whether a filesystem path is accessible and exists.
- path_
fingerprint - path_
lstat_ exists - Probe whether a path exists without following symbolic links.
- read_
to_ string - Read a file into a string.
- readahead
- Advise the kernel to begin reading file data into the page cache.