1
This commit is contained in:
1 parent
4682ea1813
commit
4d5d7dd456
1 file changed
+2
-1
@@ -39,7 +39,7 @@ def down_obj_fromoss(pid,order_id):
|
|||||||
prefix = f'objs/print/{pid}/'
|
prefix = f'objs/print/{pid}/'
|
||||||
if ossPath != "":
|
if ossPath != "":
|
||||||
prefix = os.path.join("objs","print",pid,ossPath,order_id)
|
prefix = os.path.join("objs","print",pid,ossPath,order_id)
|
||||||
filelist = oss2.ObjectIteratorV2(oss_client, prefix=prefix)
|
|
||||||
print(f'prefix:{prefix}')
|
print(f'prefix:{prefix}')
|
||||||
print(f'ossPath:{ossPath}')
|
print(f'ossPath:{ossPath}')
|
||||||
# #判断filelist是否为空
|
# #判断filelist是否为空
|
||||||
@@ -49,6 +49,7 @@ def down_obj_fromoss(pid,order_id):
|
|||||||
# else:
|
# else:
|
||||||
print(f"从 objs/print/{pid}/{ossPath}/{order_id}/ 下载数据")
|
print(f"从 objs/print/{pid}/{ossPath}/{order_id}/ 下载数据")
|
||||||
prefix = "objs/print/253312/model/standard_size/88942"
|
prefix = "objs/print/253312/model/standard_size/88942"
|
||||||
|
filelist = oss2.ObjectIteratorV2(oss_client, prefix=prefix)
|
||||||
find = False
|
find = False
|
||||||
for file in filelist:
|
for file in filelist:
|
||||||
filename = file.key.split('/')[-1]
|
filename = file.key.split('/')[-1]
|
||||||
|
|||||||
Reference in new issue
Block a user