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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfindtool-0.13.tar.gz
Algorithm Hash digest
SHA256 832ff08857c2c87906ef8a7f5301923e279a866329994ee0a6b14bcebb0328c6
MD5 410cd3f8072117540c054a8d6bfaadac
BLAKE2b-256 81d1fb9948429a0cc48141ef697660336362c4def0c07ede49da75ed220fcb1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfindtool-0.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d97fb305ba5facd7bf803d0e5fbe2c158a75d515758a6344b2c517c991a1f18d
MD5 2ab47471b851917cdafaf8d02a0255c6
BLAKE2b-256 0d4d0d94f1dd835477cdf687af7f106457e8ac0a52086b8b279f877c69056ce1

See more details on using hashes here.

Supported by

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