Module tiny_std::fs

source ·

Structs

Enums

Functions

  • Copies the file at src, to the dest, overwriting anything at dest. Returns a handle to the new file.
  • Tries to create a directory at the specified path
  • Tries to create a directory at the specified path
  • Create a directory with the given mode
  • Checks if anything exists at the provided path. Will false-negative if the path is empty.
  • Reads metadata at path
  • Reads a file into a newly allocated vec
  • Reads a file into a newly allocated vec
  • Tries to remove a directory from the filesystem at the specified path
  • Tries to recursively remove a directory and its contents from the filesystem at the specified path. Potentially very destructive
  • Tries to remove a file from the filesystem at the specified path
  • Renames src to dest, can be used to move files or directories. Will overwrite anything currently at dest.
  • Attempts to write the entire contents of buf into the path specified at path. If no file exists at path one will be created. If a file exists at path it will be overwritten. Use File and open with append to append to a file.