This Python script allows users to search for files within a specified directory based on a query. It traverses the given directory and its subdirectories to locate files that match the user's search term.
- Run the script.
- Provide the path to the directory you want to search.
- Enter the name (or part of the name) of the file you're looking for.
- The script will display any matching files it finds.
Enter path to directory: /path/to/directory
Enter name of file you're looking for: example.txt
Searching for 'example.txt' in /path/to/directory
Found example.txt in /path/to/directory/subdirectory
- Python 3.x
- Standard Python libraries:
os