Skip to content

BenMathewsOnline/python-sort-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

File Sorting Automation Tool

This Python script helps you sort files in a directory by their file extension. It creates folders named after the file extensions and moves the files into their respective folders. After sorting the files by their extension, the script also sorts the files alphabetically within each folder.

Requirements

  • Python 3.x

How to Use

  1. Place the file_sorting_automation.py script in the directory where you want to sort the files.

  2. Open a terminal or command prompt.

  3. Navigate to the directory where the script is located.

  4. Run the following command: python file_sorting_automation.py

  5. The script will sort the files in the directory by their file extension and then sort them alphabetically within each folder.

Notes

  • This script will only process files in the directory where it's located. It won't process files in subdirectories.
  • The script will create folders based on the file extensions and move the files into those folders.
  • The script will sort the files alphabetically within each folder and prepend a 3-digit index to the file names to maintain the alphabetical order.

License

This project is released under the MIT License. See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages