slmsuite.holography.analysis.files.latest_path#

latest_path(path, name, extension=None, kind='file', digit_count=5)[source]#

Obtains the path for the file or directory in path like path/name_id where id is the greatest identifier in path for the given name.

Parameters:
Returns:

file_path – The path requested. None if no file could be found.

Return type:

str or None