Skip to content

Simple but powerful Python script that helps you instantly find any file or folder by name — anywhere on your system.

Notifications You must be signed in to change notification settings

ashkan0201/File_Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

🕵️‍♂️ File Finder

A fast and lightweight Python-based file search tool that scans directories and subdirectories for any file or folder containing your desired keyword.


📸 Preview

Program Preview


🧩 Features

  • 🚀 Fast scanning using os.scandir() and multithreading
  • 💡 Case-insensitive search for both files and folders
  • 🧱 Custom search path support (default: current directory)
  • ⚠️ Permission error handling — skips inaccessible directories safely
  • 📁 Optional save of results to a text file
  • 🕒 Displays total search time and result count

⚙️ Installation

Make sure you have Python 3.8+ installed on your system.

git clone https://github.com/ashkan0201/File_Finder.git
cd File_Finder

No extra libraries are required — this project uses only Python’s built-in modules.


🧠 Usage

Run the script directly from your terminal:

python file_finder.py

Then follow the prompts:

=============================================
  ⚡ Ultra Fast File Search Tool (Python) ⚡
=============================================
Search for: report
Search path (default: current folder):

If you press Enter without specifying a path, it will search in your current working directory.

You can also manually change the default path inside the code:

path = '/'

🧾 Example Output

Searching for 'config' in 'C:\Projects' ...

Found 12 results in 1.42 seconds:

[1] C:\Projects\App\config.json
[2] C:\Projects\Backend\old_config.txt
[3] C:\Projects\Docker\configs\main.yaml
...

You can optionally save the results:

Save results to file? (y/n): y
Results saved as search_results_config.txt

🛠️ Code Highlights

  • Optimized file scanning via os.scandir()
  • Thread-safe and non-blocking logic
  • Lightweight and portable — no dependencies

🧑‍💻 Author

Developed by: Ashkan Noroozi

If you find a bug or have an idea for improvement, feel free to open an issue or email me directly.

About

Simple but powerful Python script that helps you instantly find any file or folder by name — anywhere on your system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages