copy use 0 padding
This commit is contained in:
parent
d0063c2cc4
commit
5c773af571
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user