Crate bbq

Source

Structs§

FileInfo

Functions§

archive_dir
Compresses the specified directory into a tar.gz file.
get_dir_info
get_files
Retrieves all files from a specified directory, including subdirectories.
get_size
The get_size function returns the total size (in bytes) of the specified directory.
move_file
Moves a file from one location to another.
read_file
Reads a file as binary data.
read_files
Reads multiple files and returns their content as binaries.
read_text_file
Reads a file as a text string.
remove_dir
Removes the specified directory.
remove_file
Removes the specified file.
remove_files
Removes specified files from the system.
remove_old_files
Removes old files from a directory until the total size of the directory is less than a specified size.
write_file
Writes binary data to a file.
write_text_file
Writes a text string to a file.