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.0.1.post10.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file findfile_path-0.0.1.post10.tar.gz.

File metadata

  • Download URL: findfile_path-0.0.1.post10.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.9

File hashes

Hashes for findfile_path-0.0.1.post10.tar.gz
Algorithm Hash digest
SHA256 142570056807ad5d3b19b4cb45a909dbad2d16dfa43baccfb34f51f29854719a
MD5 93a91c5743ca6d8b891e425df5d0f5d1
BLAKE2b-256 7ab154fb40d590b69f279dd5ee06c66ba09b4356b3c4ecbaa0692e65ee05836c

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