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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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