finished FileFinder.py
This commit is contained in:
parent
db58981414
commit
2ca3bbfef2
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user