Clean your castle
This CLI program provides functions for maintaining order on a server or home computer.
How tired I am of looking at this trash in Downloads.
(c) Author
To fix this problem this program was developed in the Python language.
In fact, this program is a working prototype for a similar Golang program, but you can already use it now.
In fact trash dir exists not only in Downloads, so it is work for Butler.
Enjoy.
The program provides three functions:
- Cleaning
- Grouping
- Archiving
- Combining
In case the first and third functions are already familiar, grouping may seem like an interesting function.
It is important to close slashes.
Cleaning
butler.exe clean --source /path/to/dir/
Clean target dir but not delete it.
If set -f
remove directory also.
Grouping
butler.exe group --source /path/to/dir/ --target DIRNAME
Group up files by extensions to new directory named.
From --source
get path to directory where the files will be group up.
From --target
get new directory name where the files will be moved.
For example, you have a lot of .exe files, after this command you will have one directory called ALL.EXE with all your .exe files in it.
Archiving
butler.exe archive --source /path/to/dir/
Create zip archive in current directory for target directory.
Combining
butler.exe combine --source /path/to/dir/ --target ALL --ext DOCX
Combine files in target dir according theirs extensions.
From --source
get path to directory where the combination will be processed.
From --target
get new directory name where the files will be moved.
From --ext
get extension for filter files and combine only them.