Expand description
Common FileSystem operations.
Statics§
Functions§
- copy_
reference - Copies the reference of a file from one file system to another
- copy_
reference_ ext - Copies the reference of a file from one file system to another
- create_
dir_ all - Make sure a directory (and all its parents) exist.
- create_
white_ out - Creates a white out file which hides it from secondary file systems
- exists
- Does this item exists?
- has_
white_ out - Returns true if the path has been hidden by a whiteout file
- is_dir
- Does this path refer to a directory?
- is_file
- Does this path refer to a file?
- is_
white_ out - Returns true if the path is a whiteout file
- read
- Asynchronously read a file’s contents into memory.
- read_
to_ string - Asynchronously read a file’s contents into memory as a string.
- remove_
white_ out - Removes a white out file from the primary
- touch
- Update a file’s modification and access times, creating the file if it doesn’t already exist.
- walk
- Recursively iterate over all paths inside a directory, ignoring any errors that may occur along the way.
- write
- Asynchronously write some bytes to a file.