Skip to main content

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    ---    Bildschirm­foto 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

Metadata

Release files for filecleaner 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filecleaner 0.1.1
File Size Uploaded
filecleaner-0.1.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filecleaner 0.1.1
File Interpreter ABI Platform
filecleaner-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / filecleaner-0.1.1.tar.gz

Download URL filecleaner-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e1ada41917453de4f09afa9ff871b0203ca02563b084a3eca8affe5dc10f2b5b
BLAKE2b-256 checksum
How to use checksums
d60712f923e14f952ae8e3ae14cc26fbb6f36f3cfe0144a8e70d295502f2874a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / filecleaner-0.1.1-py3-none-any.whl

Download URL filecleaner-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76cd09abdeed7c36a7948c4f3489ad2dd6e150049792a6dc75d6b777d009089c
BLAKE2b-256 checksum
How to use checksums
1994eed6009ef4d3493fad31521a60b21cd9a3898cc0ca7ccce2fcd58d673185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page