Skip to content

tylermaire/DownloadFolderClean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Downloads Folder Organizer

This Python script helps you to automatically organize files in your Downloads folder into designated subfolders based on their file types. It's a simple and efficient way to keep your Downloads folder uncluttered.

Features

  • Automatic Sorting: Sorts files into folders like Images, PDFs, Documents, Music, Videos, etc.
  • Customizable: Easily add more file types and corresponding folders.
  • Simple to Use: Just run the script and your Downloads folder will be organized.

Requirements

  • Python 3.x

Installation

No additional installation required, as the script uses standard Python libraries.

Usage

  1. Clone or download this repository to your local machine.
  2. Open the script organize_downloads.py.
  3. Modify the download_folder_path in the script to the path of your Downloads folder.
    download_folder_path = '/Users/yourusername/Downloads'
  4. (Optional) Modify the file_type_to_folder dictionary in the script to customize the file types and their corresponding target folders.
  5. Run the script:
    python organize_downloads.py

File Type Mapping

The script includes a default set of file type mappings to folders. You can modify or extend this mapping in the script. Here's the default mapping:

  • Images: .jpg, .jpeg, .png, .gif
  • PDFs: .pdf
  • Documents: .docx
  • Spreadsheets: .xlsx
  • PowerPoint Presentations: .ppt, .pptx
  • Text Files: .txt
  • Music: .mp3
  • Videos: .mp4
  • Archives: .zip, .rar

Contributing

Contributions to enhance this script are welcome. Feel free to fork this repository and submit pull requests.

License

This project is open source and available under the MIT License.

Disclaimer

Please ensure to backup your Downloads folder before running this script to avoid any unintended data loss.


Feel free to customize this README to better suit your project's needs or to add any additional information you deem necessary.

About

Python program to sort download folder by file type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published