A CLI tool to automatically organize files into categorized folders
Project description
File Organizer
A Python script to automatically organize files in a specified folder into categorized subfolders based on file types.
Features
- Automatically moves files into folders like Documents, Images, Videos, Audio, Archives, Apps, and Others.
- Supports organizing any folder by providing the path as an argument or via prompt.
- Non-destructive: existing folders and files not matched by categories remain unaffected.
- Easy to use and extend with more file type categories.
- Installable as a Python package with a simple CLI command.
Setup
Before running the tool, run the setup script once to install dependencies, upgrade pip tools, and configure your environment:
./setup.sh
This will: • Upgrade pip, setuptools, and wheel. • Install any dependencies listed in requirements.txt (if present). • Add the file-organizer CLI command to your PATH.
Usage
After setup, you can organize files using the CLI command from anywhere:
file-organizer /path/to/folder
- Repalce "/path/to/folder" with your destination folder path which you want to organize.
- If no folder path is provided, it defaults to organizing the Downloads folder.
Example:
file-organizer /Users/username/Downloads
Requirements
- Python 3.6 or higher
How it works
- Scans the target folder.
- Detects file types based on extensions.
- Moves files into corresponding folders.
- Creates folders if they don’t exist.
Notes
- Running the CLI multiple times will not affect already organized files.
- The CLI does not modify files inside existing subfolders.
- Files without known extensions are moved to the Others folder.
Sample Output:
✅ Moved: example.pdf → Documents ✅ Moved: vacation.jpg → Images ✅ Moved: project.zip → Archives ✅ Moved: app.dmg → Apps
📂 Folder '/Users/username/Downloads' organized successfully!
Screenshot
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_organizer_advanced-1.0.1.tar.gz.
File metadata
- Download URL: file_organizer_advanced-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54b03b6dce3e0dd8bab137d86ee6d8841b490f27db872350cb03437553764046
|
|
| MD5 |
67ad7dbfabe273498ba3a5725dde176c
|
|
| BLAKE2b-256 |
454f77e7fb3f942e6a74eeb229a36c0141fa17e0566c4ca29667662b0243f8eb
|
File details
Details for the file file_organizer_advanced-1.0.1-py3-none-any.whl.
File metadata
- Download URL: file_organizer_advanced-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b9c9d88f8a309d7bc1eaf385d31f44ef91424c052d0f4f457ab3637244deabd
|
|
| MD5 |
5f7d73ee1abc909bdc3a84c988a5d5bc
|
|
| BLAKE2b-256 |
1c9200400e452c5fd9c17b14d9b39ea1a22a5b254966fcc22f1c9c53ea9a705e
|