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 strong 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.post9.tar.gz (20.8 kB view hashes)

Uploaded Source

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