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