message: In ModelCheckpoint._get_most_recently_modified_file_matching_pattern(), check the existence of directory before attempting to iterate over the files for pattern matching, as the directory user specifies may not exist.
diff: @@ -1109,6 +1109,7 @@ class ModelCheckpoint(Callback):
  n_file_with_latest_mod_time = 0
  file_path_with_largest_file_name = None
  + if os.path.exists(dir_name):
  for file_name in os.listdir(dir_name):
  # Only consider if `file_name` matches the pattern.
  if re.match(base_name_regex, file_name):
  