Skip to content

OlgaTsuban/Folder_sorter_P2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages