find_recent_logfile#

atomate2.utils.path.find_recent_logfile(dir_name: Path | str, logfile_extensions: str | list[str])[source]#

Find the most recent logfile in a given directory.

Parameters
dir_name

The path to the directory to search

logfile_extensions

The extension (or list of possible extensions) of the logfile to search for. For an exact match only, put in the full file name.

Returns
logfile

The path to the most recent logfile with the desired extension