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.14.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

pyfindtool-0.14-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pyfindtool-0.14.tar.gz.

File metadata

  • Download URL: pyfindtool-0.14.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pyfindtool-0.14.tar.gz
Algorithm Hash digest
SHA256 e3e2c90f0afbba8fd335cbccd1dded9dae2fcac75a6786aeade4a3f30f92ae42
MD5 f3ff4fb122c675e65784c2fe90677381
BLAKE2b-256 9ce7f1b4617b45a942ea04d7ebeae71a890107af9d995ad5e9ae556b602641f5

See more details on using hashes here.

File details

Details for the file pyfindtool-0.14-py3-none-any.whl.

File metadata

  • Download URL: pyfindtool-0.14-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pyfindtool-0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 54d92cbe1ba5791eedd2c0969fe4496f8c63148b80c10270bd26bcb5cb6d0f10
MD5 fc7f9aa6af4b9afabf23a648a73498d3
BLAKE2b-256 1488977e4d862d1c73eedf23f291c2fcd28040857711c0bd1af9d413ac6006d3

See more details on using hashes here.

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