Skip to content

Instantly share code, notes, and snippets.

@kagermanov27
Created May 19, 2022 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagermanov27/6c024ced610ce1c605279c76c0ef9e8a to your computer and use it in GitHub Desktop.
Save kagermanov27/6c024ced610ce1c605279c76c0ef9e8a to your computer and use it in GitHub Desktop.
if len(file_names) > 0:
file_names = [int(x.split('.')[0]) for x in file_names]
latest_file_name = str(max(file_names) + 1)
else:
latest_file_name = "0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment