fix folder enum and refactor control ipadapter

This commit is contained in:
Vladimir Mandic
2024-01-07 16:06:03 -05:00
parent 119424399f
commit d2940a05d1
21 changed files with 237 additions and 309 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ def get_next_sequence_number(path, basename):
prefix_length = len(basename)
if not os.path.isdir(path):
return 0
for p in shared.listdir(path):
for p in os.listdir(path):
if p.startswith(basename):
parts = os.path.splitext(p[prefix_length:])[0].split('-') # splits the filename (removing the basename first if one is defined, so the sequence number is always the first element)
try: