A home made tools which enables me clean up a particular directory using just a command in python.
-
Clone the repo
git clone https://github.com/benrobo/cleanup
-
Install all packages found in
requirements.txt
python -m pip install -U -r requirements.txt
- Start the
main.py
file within the downloaded repo using some of the commands below
# list all usefull cleanup comands
py main.py -h | --help
# clean up the file where this current directory is present.
py main.py -rcd | --run-cd
# cleanup this specified path (copy all files: default)
py main.py -p | --path (/users/{username}/documents/test)
# cleanup this specified path (move all files)
py main.py -p | --path (/users/{username}/documents/test) --move