feat: fix bug

main
beiyanpiki 1 year ago
parent 53bfd74e43
commit 175ab1d0ff

@ -438,6 +438,9 @@ if __name__ == '__main__':
dst = f'../output/img/{card.collection_attr.set_symbol}/{card.collection_attr.card_no}.jpg'.replace('\\', '/')
folder = Path(f'../output/img/{card.collection_attr.set_symbol}'.replace('\\', '/'))
folder.mkdir(parents=True, exist_ok=True)
if Path(dst).is_file():
print(f"{card.collection_attr.set_symbol}-{card.collection_attr.card_no}: This file is exist, please check the data")
shutil.copy2(src, dst)
sets.append(v)

Loading…
Cancel
Save