This commit is contained in:
dongchangxi committed 2025-08-04 18:34:50 +08:00
1 parent 01c4dbfb08
commit c52211cfbf
1 file changed
+5 -5
+5 -5
View File
@@ -67,11 +67,11 @@ def down_obj_from_oss(workdir, pid, action):
filename = file.key.split('/')[-1] filename = file.key.split('/')[-1]
if filename.endswith(".exr"): # if filename.endswith(".exr"):
continue # continue
if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"): # if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"):
continue # continue
if file.key != jpgsTemp and file.key != mtlTemp and file.key != objTemp: if file.key != jpgsTemp and file.key != mtlTemp and file.key != objTemp:
@@ -79,7 +79,7 @@ def down_obj_from_oss(workdir, pid, action):
if filename.endswith('.obj'): if filename.endswith('.obj'):
obj_filename = filename obj_filename = filename
# print('正在下载:', file.key) print('正在下载:', file.key,filename)
localfile = os.path.join(workdir, action, pid, filename) localfile = os.path.join(workdir, action, pid, filename)
config.oss_bucket.get_object_to_file(file.key, localfile) config.oss_bucket.get_object_to_file(file.key, localfile)