This Rust script is designed to help you clean up multimedia files within a specified directory and its subdirectories. It identifies and optionally deletes multimedia files based on their file extensions.
- Recursively scans a directory and its subdirectories.
- Identifies multimedia files based on their extensions.
- Deletes identified multimedia files (optional).
- Provides statistics on the number of files and folders processed.
- Rust installed on your system.
- A directory path as a command-line argument.
-
Clone the repository or download the script.
-
Open your terminal or command prompt.
-
Navigate to the directory containing the script.
-
Run the script by providing the directory path as an argument:
cargo run --release -- /path/to/directory