find_recent_logfile

atomate2.utils.path.find_recent_logfile(dir_name, logfile_extensions)[source]

Find the most recent logfile in a given directory.

Parameters:
  • dir_name (Path | str) – The path to the directory to search

  • logfile_extensions (str | list[str]) – 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:

The path to the most recent logfile with the desired extension

Return type:

logfile