Clear Empty Directories/Folders present in system
- this script is menu driven program
- libraries imported are
- time
- os
- platform
- external modules -
None
This script doesn't need any additional modules. So you can run directly without any requirements other than Python itself(Duh.)
cd Empty Folder Cleaner
python empty_folder_cleaner.py
- 1 Check the empty folders in curent path
- 2 Check the empty folder in given path by user
- 3 This is important See NOTE
it is used to change the text color. but on some computers dosen't works.
- Or write "exit" at any input for exiting.
- After using opt. 1 or 2 you will be asked to enter (Y/N) if you want to delete the Folders
- At end it would display
the no. of folder deleted
the no. of folders scanned
the no. of files and folders present.
Scanned dir path
If getting any code like
03m[
on terminal then choose OPTION 3 in starting
Starting Screen![]() |
|
Option 1![]() |
Option 2![]() |
Process![]() |
|
↙if↘ | |
Found Empty Folders![]() |
Not Found Empty Folders![]() |
↘↙ | |
End Screen![]() |