This command line program sorts files according to its format. You input files as command-line arguments, separting each file with a single space. The program will create a folder called "sorted" in the current working directory. Then, the program will create a folder for each unique format for the inputs inside the "sorted" folder.
- Download the python script
- Place it in a directory
- Launch terminal or the command-line
- Write "python filemagic.py" followed by the files you want to sort
- Press "enter" and the program will do its job
Example command line code
python filemagic.py image1.png image2.png image3.jpg image4.tiff
- JPEG
- PNG
- TIFF
- GIF