This Python script scans a specified directory and categorizes files into various types. It provides options for detailed logs or a progress bar to visualize the scanning process. The categorized files are then displayed based on user selections (e.g., executable files, image files, video files, hidden files). It also identifies empty directories within the scanned path.
- Scan directories: Scan any directory to analyze its contents.
- Categorize files: Categorize files into
.exefiles, image files (e.g.,.png,.jpg), video files (e.g.,.mp4,.avi), and hidden files. - Track empty directories: Identify and list empty directories.
- Progress bar or detailed log: Choose between a progress bar for a quick overview or detailed logs to track the scanning process.
- Re-scan or switch directories: You can re-scan the same directory or switch to a new directory at any time.
Before running the script, ensure that you have the following:
-
Python 3.x: You need Python 3.x installed. You can download it from here.
-
Required Python packages:
-
tqdm(for the progress bar): Install it using pip by running the following command:pip install tqdm
-
-
Windows Batch File: A
.batfile is included for easy execution of the Python script in Windows.
-
Clone this repository:
git clone https://github.com/Mifu999/Super-Files-Scanner
-
Install dependencies:
Open a terminal (or command prompt) and navigate to the repository folder. Then, install the required Python package:
pip install tqdm
-
Using the Batch File:
For Windows users, simply double-click the
SFS.batfile to run the script. This will execute themain.pyscript. -
Manual execution:
If you prefer to run the script manually, use the following command from your terminal:
python main.py
When you run the script, you will be prompted to choose the scanning mode:
- Detailed Logs: Displays detailed logs of the scan process, showing folder names and the number of files found.
- Progress Bar: Displays a progress bar for the scan, showing the overall progress as the files are analyzed.
After choosing the scan mode, you will be asked to enter the directory path you want to scan. Ensure that the directory path is correct and accessible.
Once the scan is completed, you can view the following results:
- Total files found in the directory.
- Total directories.
- Number of empty directories.
- Number of
.exefiles, image files, video files, and hidden files.
You will be able to choose the following options to display file paths:
.exefiles- Image files (e.g.,
.png,.jpg) - Video files (e.g.,
.mp4,.avi) - Hidden files
- Scan another directory
- Empty directories
- Re-scan the same directory
- Quit the program
At any time, you can opt to re-scan the current directory or switch to another directory to scan by selecting the appropriate option.
- Start the script by running the
.batfile orpython main.pyfrom the terminal. - Choose detailed mode or progress mode.
- Enter the path to the directory you want to scan, e.g.,
C:\Users\YourName\Documents. - The script will scan the directory and categorize the files.
- After the scan, you can view the categorized file paths and perform additional actions as needed.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to fork this repository and submit pull requests. If you find any bugs or have suggestions for improvements, please open an issue.