Skip to content

Latest commit

 

History

History
 
 

Empty Folder Cleaner

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Empty Folder Cleaner

Aim/Purpose

Clear Empty Directories/Folders present in system

Short description of package/script

  • this script is menu driven program
  • libraries imported are
    • time
    • os
    • platform
  • external modules -None

Setup instructions

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

Detailed explanation of script

This script has 3 options:

  • 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

NOTE

If getting any code like 03m[ on terminal then choose OPTION 3 in starting

Output

Starting ScreenstartScreen.jpg↙↘
Option 1Option1.jpg Option 2Option2.jpg
ProcessOption2process.jpg
↙if↘
Found Empty FoldersfoundEmpty.jpg Not Found Empty FoldersnoEmpty.jpg
↘↙
End ScreenendScreen.jpg

Developer

Dark Coder Cat | Vansh