上传文件添加时间间隔
							parent
							
								
									c05769d196
								
							
						
					
					
						commit
						306d2497b1
					
				| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
# coding:utf-8
 | 
					# coding:utf-8
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
 | 
					import time
 | 
				
			||||||
 | 
					
 | 
				
			||||||
curr_dir = os.path.split(os.path.abspath(__file__))[0]
 | 
					curr_dir = os.path.split(os.path.abspath(__file__))[0]
 | 
				
			||||||
sys.path.append(os.path.join(curr_dir, '../'))
 | 
					sys.path.append(os.path.join(curr_dir, '../'))
 | 
				
			||||||
| 
						 | 
					@ -78,6 +79,8 @@ def upload_directory(helper, storage_path, local_path, filter, ext_meta={}):
 | 
				
			||||||
                clear_cdn_tool.appendClearFile(storage_file)
 | 
					                clear_cdn_tool.appendClearFile(storage_file)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                helper.upload_file_no_metadata(storage_file, file_path)
 | 
					                helper.upload_file_no_metadata(storage_file, file_path)
 | 
				
			||||||
 | 
					            # 每个文件上传后间隔1秒
 | 
				
			||||||
 | 
					            time.sleep(1)
 | 
				
			||||||
    print("上传完成Package资源 Local: {}  Storage: {}".format(local_path, storage_path))
 | 
					    print("上传完成Package资源 Local: {}  Storage: {}".format(local_path, storage_path))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def upload_package_assets(ab_path, modify_files, storage_path, asset_find_num_dict, ext_meta={}):
 | 
					def upload_package_assets(ab_path, modify_files, storage_path, asset_find_num_dict, ext_meta={}):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue