Expand description
file-operation
A Rust library providing a set of utilities for common file operations such as reading, writing, and querying file metadata like size. It aims to simplify file handling in Rust projects, offering safe and efficient file manipulation methods.
Structs§
- File
Data String - A wrapper struct for file data in string format.
Functions§
- append_
to_ file - Appends content to a file.
- async_
append_ to_ file - Appends content to a file asynchronously.
- async_
copy_ dir_ files - Asynchronously copies all files from the source directory to the destination directory.
- async_
copy_ file - Asynchronously copies a file from the source path to the destination path.
- async_
delete_ dir - Asynchronously deletes a directory and all its contents.
- async_
delete_ file - Asynchronously deletes a file at the given path.
- async_
get_ file_ size - Gets the size of a file in bytes.
- async_
move_ dir - Moves a directory and all its contents to another location asynchronously.
- async_
move_ file - Moves a file from the source path to the destination path asynchronously.
- async_
read_ from_ file - Reads the content of a file and converts it to the specified type.
- async_
write_ to_ file - Writes content to a file asynchronously.
- copy_
dir_ files - Copies all files from the source directory to the destination directory.
- copy_
file - Copies a file from the source path to the destination path.
- delete_
dir - Deletes a directory and all its contents.
- delete_
file - Deletes a file at the given path.
- get_
file_ size - Gets the size of a file in bytes.
- move_
dir - Moves a directory and all its contents to another location.
- move_
file - Moves a file from the source path to the destination path.
- read_
from_ file - Reads the content of a file and converts it to the specified type.
- write_
to_ file - Writes content to a file.