Skip to main content

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    ---    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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filecleaner-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filecleaner-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file filecleaner-0.1.1.tar.gz.

File metadata

  • Download URL: filecleaner-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for filecleaner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e1ada41917453de4f09afa9ff871b0203ca02563b084a3eca8affe5dc10f2b5b
MD5 592ef96c497cb02da7b82f8d8d64c988
BLAKE2b-256 d60712f923e14f952ae8e3ae14cc26fbb6f36f3cfe0144a8e70d295502f2874a

See more details on using hashes here.

File details

Details for the file filecleaner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: filecleaner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for filecleaner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 76cd09abdeed7c36a7948c4f3489ad2dd6e150049792a6dc75d6b777d009089c
MD5 c6e7e885d7dfec622aad60d5d3b77eb3
BLAKE2b-256 1994eed6009ef4d3493fad31521a60b21cd9a3898cc0ca7ccce2fcd58d673185

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page