Skip to main content

Efficiently find files and directories

Project description

This package provides similar functionality to the Unix find command, but in a pythonic fashion. A FsFinder object encapsulates a number of rules that define how to traverse a directory structure and try to match the paths along the way. The FsFinder.walk method takes one or more root paths to start from and generates a MatchResult object for any path it encounters that match its rules.

The package is built upon the scandir package which provides effiecient directroy listing and the ability to avoid unneeded ‘stat’ calls on the paths being generated.

Running Tests

You can run the tests with:

$ python setup.py test

Or if you already have the nose package installed you can use the nosetests command in the top level directory:

$ nosetests

Installing

You can install the .zip or .tar.gz package with the easy_install or pip commands.

Or you can uncompress the package and in the top level directory run:

$ python setup.py install

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

fsfind-0.1.dev0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

fsfind-0.1.dev0-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fsfind-0.1.dev0.tar.gz.

File metadata

  • Download URL: fsfind-0.1.dev0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fsfind-0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 796a1217807028c408f560a88ff7946ac8f7a17b85f4e4974aecc992c87e8117
MD5 d2f165748cc93f6370557cec82ab6683
BLAKE2b-256 e72f3850dc8fd15bf3900034782a203d2a460ac0af0c99903c3e7f8cdc8916c0

See more details on using hashes here.

File details

Details for the file fsfind-0.1.dev0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fsfind-0.1.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb854a8cc03d95a63c8523870c004041ee275a6706fc4152a31550af69932d3b
MD5 98c7a13b8af1f7786921d8ca3d6d0d0d
BLAKE2b-256 06e48a5593ec4268e9f0cdfe2e27c2ce21c5f705d607b601dae16bc0fca2f6a2

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