Skip to main content

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

Script Output Screenshot

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

file_organizer_advanced-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

file_organizer_advanced-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: file_organizer_advanced-1.0.0.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

Hashes for file_organizer_advanced-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c64a01a0cdb785c3f0c0f0072db2c6b3f3905de88c01ba6410d87aa452b4fbbb
MD5 29538a43fe3fa26b0df920f9698ad478
BLAKE2b-256 f5a16929b23d59aa921cacd56b1260635895720f669377650fda9ca3078ecdaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for file_organizer_advanced-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f8912faaf364520e5a70b5b72cb22db0744025718ef1a43f1a8ae9c06d8ab7
MD5 1d584cbae920f317d81d978802e1e0af
BLAKE2b-256 178939e852e16eee72842785ae1ac76544ca68572c9b667817ae70a2348de742

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