slmsuite.misc.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
likepath/name_id
whereid
is the greatest identifier inpath
for 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.
None
if no file could be found.- Return type
str or None