12
This commit is contained in:
1 parent
01c4dbfb08
commit
c52211cfbf
1 file changed
+5
-5
@@ -67,11 +67,11 @@ def down_obj_from_oss(workdir, pid, action):
|
||||
|
||||
|
||||
filename = file.key.split('/')[-1]
|
||||
if filename.endswith(".exr"):
|
||||
continue
|
||||
# if filename.endswith(".exr"):
|
||||
# continue
|
||||
|
||||
if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"):
|
||||
continue
|
||||
# if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"):
|
||||
# continue
|
||||
|
||||
|
||||
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'):
|
||||
obj_filename = filename
|
||||
# print('正在下载:', file.key)
|
||||
print('正在下载:', file.key,filename)
|
||||
localfile = os.path.join(workdir, action, pid, filename)
|
||||
config.oss_bucket.get_object_to_file(file.key, localfile)
|
||||
|
||||
|
||||
Reference in new issue
Block a user