A simple command line utility that organises files in a directory into subdirectories.
Project description
File Manager
This Automation Script sorts your files according to their extensions and creates Folders and Subfolders, all files in the specified Directory get moved to. In the end you don't have any loose files in your Directory only Folders and Subfolders that match the Category of Files.
Currently the Script only works only with MacOS.
Installation
Before you can use the Script you need to pip install
.
You can do it like this:
pip install filecleaner
Supported Files
Currently Supported files are:
jpeg
png
mov
mp4
avi
mpg
wmv
mp3
wav
mid
pptx
ppt
docx
doc
xlsx
xls
csv
json
txt
dmg
exe
zip
pdf
py
html
css
c
java
cs
PHP
swift
vb
asp
xhtml
db
js
md
Usage
You can use this Script by typing cleanup
into the CLI. This will open a prompt asking you to type in an absolute path to the desired directory. This behavior represents the default. There are flags you can use to change that behavior.
The first flag is -D
cleanup -D
This flag will tell the script to clean the Desktop directory.
The second flag is -d
cleanup -d
This flag will tell the script to clean the Downloads directory
The default looks comes with no flag and looks like this
cleanup
This will tell the script to clean the custom directory the user provide in the prompt
The script will creeate an error_log.txt file which stores every file the script couldn't move to a subfolder. Those files will be moved to the Others directory
The Output on the terminal shows the files and their destination directory
/Users/some_user/Downloads/png --- some_image.png
/Users/some_user/Downloads/csv --- All Locations_temperature (F).csv
/Users/some_user/Downloads/png --- some_image.png
/Users/some_user/Downloads/png --- Bildschirmfoto 2023-07-10 um 12.16.02.png
/Users/some_user/Downloads/avi --- Other0001-0130.avi
License
This Package is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for filecleaner-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76cd09abdeed7c36a7948c4f3489ad2dd6e150049792a6dc75d6b777d009089c |
|
MD5 | c6e7e885d7dfec622aad60d5d3b77eb3 |
|
BLAKE2b-256 | 1994eed6009ef4d3493fad31521a60b21cd9a3898cc0ca7ccce2fcd58d673185 |