Skip to content

Script to automatically sort a directory based on file extension. The default folders are Documents, Video, Audio, Images, Zip Files, Code, Folders, and Other.

License

Notifications You must be signed in to change notification settings

Sharizzle/Python-File-Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python File Sorter

The purpose of this script is to automatically sort a directory using one Python 3 script. The default folders are Documents, Video, Audio, Images, Zip Files, Code, Folders, and Other. These can be changed later in the Python script. No external libraries are needed as it utilizes the shutil and os libraries only.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python 3 Installed on Windows, Mac, or Linux.

Changing Folders and Extensions

The extensions and their corresponding folders can be changed inside the extensions dictionary at the beginning of the script.

Running the script

For Windows:

python sorter.py

For Mac and Linux:

python3 sorter.py

Example

Before:

After:

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Script to automatically sort a directory based on file extension. The default folders are Documents, Video, Audio, Images, Zip Files, Code, Folders, and Other.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages