Skip to main content

Script for sorting files in junked folders

Project description

Clean Folder

Clean Folder is a Python package that provides a command-line interface for sorting files within a folder. It helps organize cluttered directories by moving files into specific subfolders based on their file types. Additionally, it offers an optional backup feature that creates an archive of the folder before sorting.

Installation

You can install Clean Folder using pip:

pip install clean-folder_by_MK

Usage

To use Clean Folder, open a command prompt or terminal and run the clean-folder command followed by the path to the folder you want to sort. The path argument is required.

clean-folder /path/to/folder

Optional Backup (for now only for Windows based systems)

You can include the optional backup argument to create a backup of the folder before sorting the files. This can be useful to preserve the original state of the folder in case you want to revert the changes.

clean-folder /path/to/folder backup

The backup will be created as an archive file with the backpup appenden to the name, e.g., /path/to/folder_backup.zip.

Example

Let's consider an example where we want to sort the files in the ~/Documents folder with a backup:

clean-folder ~/Documents backup

This command will organize the files within ~/Documents into subfolders based on their file types. A backup of the ~/Documents folder will be created before sorting.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Clean Folder makes use of the following libraries:

  • shutil: File and directory management operations
  • pathlib: Object-oriented filesystem paths
  • datetime: Date and time manipulation
  • re: Regular expression operations

These libraries greatly contribute to the functionality and efficiency of Clean Folder.

Authors

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

clean_folder_by_MK-1.0.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

clean_folder_by_MK-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file clean_folder_by_MK-1.0.0.tar.gz.

File metadata

  • Download URL: clean_folder_by_MK-1.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for clean_folder_by_MK-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1427a038b08ce7aa3afa4522d4b917d33843db129638c892842c11890c65af1d
MD5 db1cb68188583955c6ffd6eaf8359574
BLAKE2b-256 cbaeab18a850fb65495554922c340ba1c8d88c782f504f90d8a60b80fadbd181

See more details on using hashes here.

File details

Details for the file clean_folder_by_MK-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clean_folder_by_MK-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8adc2fa194cc3dfd0fcef0686b896326bb23a70b0c2b1cbbaa1e222e0b7d881f
MD5 c418987fd1575ae001b287cdbbe4c591
BLAKE2b-256 75346c921e1ac8b2b1e06acb8d2aa290f359b65d2e9d30507eb0da22ce205e21

See more details on using hashes here.

Supported by

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