A small and simple way to search folders for files using regular expressions.
For more information, click here
- Recursively scans files inside a folder
- Uses regular expressions to search filenames
- Displays every file while scanning
- Displays all matching files
- Saves scanned file paths to an output file
- Custom output file path
- Custom target folder
- Displays scan time
- Displays the number of matches found
- Handles invalid regular expressions
- Handles keyboard interrupts
- No external Python dependencies
Run:
python Refs.py --folder "C:\Users\Desktop\test"
Refs will ask for a regular expression:
Enter a valid regular expression pattern:
For example:
^.*\.py$
Refs will recursively scan the selected folder and display every file it encounters.
Matching files will be displayed as:
Match: C:\Users\Desktop\test\example.py
Non-matching files will be displayed as:
Scanning: C:\Users\Desktop\test\example.txt
Specifies the folder to scan.
Example:
python Refs.py --folder "C:\Users\Desktop\test"
Specifies the folder where output file containing scanned file paths will be saved.
Example:
python Refs.py --folder "C:\Users\Desktop\test" --output "C:\Users\Desktop\"
By default, the output file is:
output.txt
in the current working directory.
Displays the Refs help message.
Search for Python files:
python Refs.py --folder "C:\" --output "C:\Users\Desktop"
Then enter:
^.*\.py$
Search for every file:
.*
- Python 3.x
- No external Python dependencies
Only the Python script is available.
— All Rights Reserved Request Timeout