get_zfile
get_zfile#
- atomate2.common.files.get_zfile(directory_listing: list[Path], base_name: str, allow_missing: bool = False) Path | None [source]#
Find gzipped or non-gzipped versions of a file in a directory listing.
- Parameters
- Returns
Path
orNone
A path to the matched file. If
allow_missing=True
and the file cannot be found, thenNone
will be returned.