This Python script allows you to search for files with a specific extension in a directory. It recursively searches through all subdirectories of the specified directory and returns a list of files that match the provided file extension.
-
Clone the repository or download the
file_search.py
file. -
Open a terminal or command prompt and navigate to the directory where
file_search.py
is located. -
Run the script by executing the following command:
python File_Search.py
-
Follow the prompts to enter the directory to search and the file extension to search for.
The script will search for files with the specified extension and display their paths. If no files are found, it will display a message indicating that no files were found.
Srujana