finished FileFinder.py

This commit is contained in:
EggMan 2024-04-25 10:48:19 -04:00
parent db58981414
commit 2ca3bbfef2

View File

@ -0,0 +1,9 @@
import os
search_dir = input("Enter the directory path to search: ")
search_filename = input("Enter the filename to search for: ")
for dirpath, dirnames, files in os.walk(search_dir):
if search_filename in files:
print("Found:", os.path.join(dirpath, search_filename))