添加psd缺失检测
							parent
							
								
									a46a69a324
								
							
						
					
					
						commit
						cc2b8ab9be
					
				|  | @ -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]) | ||||
|  | @ -0,0 +1,2 @@ | |||
| python check_lost.py ./art_assets | ||||
| pause | ||||
		Loading…
	
		Reference in New Issue