Skip to main content

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' or '.pyc'
	for found in Search('.', '-size +1m -a -cmin -25 -a ( -name *.py -or -name *.pyc )').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


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.13.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

pyfindtool-0.13-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page