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

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page