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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for findfile_path-0.2.post3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c18483a00d5530548ecc5bddaf71808135446e462ae685303268c54e7c0ae28 |
|
MD5 | 63474e5937283bef5546ac9426b27b50 |
|
BLAKE2b-256 | 051c2a4987745a448df9756777d8f0e4f059aa6aa1ce57b1f874f6de8f5774af |