Рет қаралды 3,002
Writing a file sorter in Python.
GitHub repository: github.com/lesskop/file-sorter
Article on Habr: habr.com/ru/post/562362
Support channel: yoomoney.ru/to/410012320109479
Social networks:
VK: lesskop
Instagram: / lesskop
Time codes:
00:00 - Shtosh
00:29 - Lyrical digression
00:59 - Writing the code
01:39 - Create folder os.mkdir ()
02:00 - Create a lot of folders
02:32 - Dictionary with folder names and extensions
03:20 - Get the paths of the subfolders
04:33 - Get file paths
05:20 - Sort function
08:23 - Delete empty folders
09:32 - Configuring the program to fit your needs
10:40 - Shtosh