FileOrganizer is a command-line tool written in Rust for organizing files within a directory by their extensions. It also provides the functionality to restore the original structure of the directory using a log file that is created during the organization process.
- Install Rust and Cargo
- Clone this repository
If you are on Linux or macOS, you can use the provided script to build the project:
bash install.shcargo build --releaseThe compiled binary will be located in the target/release directory.
After compiling the project, the executable can be accessed by using ./target/release/file_organizer in the terminal.
<path_to_bin> -d <directory_path> # change the executable path as neededA log file will be created in the directory that was organized. It contains all the changes made.
<path_to_bin> -r <log_file_path> # change the executable path as neededOrganizing:
➤ <path_to_bin> -d ~/wallpaper/Restoring:
➤ <path_to_bin> -r ~/wallpaper/.file_organizer_log
