A File Sorting Magician for your PC built in Python
A file sorting magician in your command line. Sorty sorts files in a folder by their extensions and organizes stuff. Sorty is built in Python and works cross platform.
Sorty shouldn’t be used in project folders or code folders. It’s better for organising folders like Downloads, Pictures, Trip Media etc.
For example, we download a lot of stuff in our computers. Most of the time, our download folder is a mess.
But worry not because Sorty is here!. Sorty sorts your files based on your extensions and groups similar files together. So your program setup files are in one folder, your PDF documents are in one, and your downloaded songs are in another. You can then rename these folders to suit yourself.
Another Example, whenever we go out for a holiday or a trip, we take a lot of pictures and videos. But when we import our files from our Camera or Smartphone, the videos and pictures are grouped together. And separating them takes time especially when we have many files. Again, Sorty to the rescue!. Sorty will group your videos separately and your pictures separately.
You need to have Python installed for this method. It will work on Windows, Unix/Linux and Mac OS X.
Use pip to install:
pip install sorty
The Installer is coming soon for Windows. It will be a small exe that you need to place in your system folder and you are good to go.
Linux and Mac OS X don’t get a compiled executable because Python is pre installed in these systems
Navigate to the Folder which you want to sort in your Terminal/Command Prompt
Enter the following command:
And the Magic will start. By default Sorty does not sort files contained in subfolders but if you want that, just add the --topdown argument so that the command becomes:
Alternatively instead of navigating to the folder, you can let sorty do that for you using the directory argument.
sorty -d "C:\Pictures" --topdown
If you have Python >2.7 and >3.2 then there are no external dependencies. To Support Python 2.5 - 2.6 and 3.0 - 3.1, the argparse module is required. If you are installing using pip then don’t worry, everything will be installed automatically.
Created By Pradipta. Copyright 2015 MIT Licensed.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Sorty-1.0.0.zip (6.4 kB)||File type Source||Python version None||Upload date||Hashes View|