Skip to main content

Find file on path with optional extensions

Project description

Find the first instance of a file on a path of directories, with possible file extensions.

findfile_path (fname, path, exts = None)

fname can be either a string or Path object, or an iterable of strings or Path objects. The first matching file in the first directory on path (a list of string or Path objects) with the first extension (exts – an optional list of strings) is returned, else None.

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

findfile_path-0.2.post3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

findfile_path-0.2.post3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file findfile_path-0.2.post3.tar.gz.

File metadata

  • Download URL: findfile_path-0.2.post3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.9-amd64

File hashes

Hashes for findfile_path-0.2.post3.tar.gz
Algorithm Hash digest
SHA256 74ecf7a698e04aa1f8ed94244d0c5756adf3f92e3c99bf3c5ef2ef4a60696e8b
MD5 f05e7c9da5a03a3df636344e0daccb98
BLAKE2b-256 8955a3c8368ec8b27b5aae5d5e2b3f6eda62384ef69f93e3e79a3f09db57db22

See more details on using hashes here.

File details

Details for the file findfile_path-0.2.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for findfile_path-0.2.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c18483a00d5530548ecc5bddaf71808135446e462ae685303268c54e7c0ae28
MD5 63474e5937283bef5546ac9426b27b50
BLAKE2b-256 051c2a4987745a448df9756777d8f0e4f059aa6aa1ce57b1f874f6de8f5774af

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