Skip to content

OlgaTsuban/Folder_sorter_P1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Folder sorter

Here is the first part of the project "Sorter"

Why we have 2 files?

File main_2.py has better code style(I recommend you to use it), but main.py is working too

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?

You can write this for MacOS python3 main.py the/way/to/the/dir

You can write this for Windows python main.py C:the\way\to\the\dir

About

Here is the first part of the project "Sorter"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages