tool to search a directory tree for files matching some criteria, in a way similar to GNU find
Project description
PyFind
This module provides a simple tool to search a directory tree for files matching some criteria, in a way similar to GNU find.
It works both from command line and as a module.
A sample: from pyfind import Search
# Finds all files greater than 1 MiB, created in the last 25 minutes,
# whose name ends in '.py'
for found in Find('.', '-size +1m -a -cmin -25 -a -name *.py').find():
print found
Also, it provides some extension switches: -Xdate and -Xhour, to test date and times in a more user-friendly way (and better than -xnewerXY).
The code is given to the Public Domain.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfindtool-0.11.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for pyfindtool-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e889de2821bb4cf2a536c45327e0f962c6947a140054f912f0e375691f67ac1 |
|
MD5 | 444446cc3868cb19b14846b3b39306ba |
|
BLAKE2b-256 | f284b80b9195942bcef180b2a000a6035e93e4c86837207ec9532202612f2ca6 |