Crate file_operation

Source

Structs§

Functions§

  • Asynchronously copies all files from the source directory to the destination directory.
  • Asynchronously copies a file from the source path to the destination path.
  • Asynchronously deletes a directory and all its contents.
  • Asynchronously deletes a file at the given path.
  • Retrieves the size of a file at the specified file_path in bytes.
  • Moves a directory and all its contents to another location asynchronously.
  • Moves a file from the source path to the destination path asynchronously.
  • Reads the content of a file at the specified file_path and converts it to the type T. The conversion is done by using the From<Vec<u8>> trait, which allows the file content (read as raw bytes) to be converted into a type T.
  • Writes the provided content to a file at the specified file_path asynchronously.
  • Copies all files from the source directory to the destination directory.
  • Copies a file from the source path to the destination path.
  • Deletes a directory and all its contents.
  • Deletes a file at the given path.
  • Retrieves the size of a file at the specified file_path in bytes.
  • Moves a directory and all its contents to another location.
  • Moves a file from the source path to the destination path.
  • Reads the content of a file at the specified file_path and converts it to the type T. The conversion is done by using the From<Vec<u8>> trait, which allows the file content (read as raw bytes) to be converted into a type T.
  • Writes the provided content to a file at the specified file_path. If the file does not exist, it will be created. If the file exists, the content will be appended to it.