添加psd缺失检测

main
程祎 2023-08-23 16:43:35 +08:00
parent a46a69a324
commit cc2b8ab9be
2 changed files with 22 additions and 0 deletions

20
check_lost.py Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env python
#coding:utf-8
import os, sys
def check_lost(path):
psd_ids = []
max_id = 0
for root, dirs, files in os.walk(path):
for name in files:
psd_id = name.split("_")[0]
psd_ids.append(psd_id)
max_id = max(max_id, int(psd_id))
for i in range(1, max_id + 1):
if str(i) not in psd_ids:
print("缺失: " + str(i))
if __name__ == '__main__':
check_lost(sys.argv[1])

2
缺失psd检测.bat Normal file
View File

@ -0,0 +1,2 @@
python check_lost.py ./art_assets
pause