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
pathlikepath/name_idwhereidis the greatest identifier inpathfor the givenname.- Parameters:
path – See
generate_path().name – See
generate_path().extension – See
generate_path().kind – See
generate_path().digit_count – See
generate_path().
- Returns:
file_path – The path requested.
Noneif no file could be found.- Return type:
str or None