copy use 0 padding

This commit is contained in:
Starnakin 2025-05-04 18:35:56 +02:00
parent d0063c2cc4
commit 5c773af571

View File

@ -42,7 +42,7 @@ def main():
hash: str = hashlib.sha256(image_data).hexdigest() hash: str = hashlib.sha256(image_data).hexdigest()
if copy_info.get(hash) is None: if copy_info.get(hash) is None:
new_name: str = str(len(copy_info)) new_name: str = f"{len(copy_info):05d}"
path: str = os.path.join(output_folder, new_name) path: str = os.path.join(output_folder, new_name)
os.makedirs(path) os.makedirs(path)