Skip to content

Latest commit

 

History

History
26 lines (26 loc) · 1.62 KB

README.md

File metadata and controls

26 lines (26 loc) · 1.62 KB

Folder Sorter

Here is the second part of the project "Sorter"

What is new in the second part of this project?

In this homework assignment, we will turn the folder cleanup script into a Python package and a command-line script that can be invoked anywhere in the system using the command clean-folder.

What this project can do ?

Many people have a folder on their desktop named something like "Sort". Typically, this folder remains unsorted indefinitely.I wrote a script that will sort this folder

This program can sort such extension

  1. Images ('JPEG', 'PNG', 'JPG', 'SVG')
  2. Video files ('AVI', 'MP4', 'MOV', 'MKV')
  3. Documents ('DOC', 'DOCX', 'TXT', 'PDF', 'XLSX', 'PPTX')
  4. Music ('MP3', 'OGG', 'WAV', 'AMR')
  5. Archives ('ZIP', 'GZ', 'TAR')
  6. Unknown extensions

The output of the script includes:

  1. A list of files in each category (music, video, photos, etc.)
  2. A list of all recognized script extensions found in the target folder.
  3. A list of all extensions that are unknown to the script.

How to use?

The package is installed in the system using the command pip install -e . (or python setup.py install, requiring administrator privileges).

After installation, the package clean_folder becomes available in the system.

Once the package is installed, the script can be called from anywhere in the system using the command clean-folder.

The command-line script handles command-line arguments in the same way as the Python script.