|
|
|
@ -48,10 +48,11 @@ def find_pid_objname(pid): |
|
|
|
|
|
|
|
|
|
|
|
def down_obj_from_oss(workdir, pid, action): |
|
|
|
def down_obj_from_oss(workdir, pid, action): |
|
|
|
if os.path.exists(os.path.join(workdir, action, pid)): |
|
|
|
if os.path.exists(os.path.join(workdir, action, pid)): |
|
|
|
print(f'目录{os.path.join(workdir, action, pid)}已存在,跳过') |
|
|
|
#print(f'目录{os.path.join(workdir, action, pid)}已存在,跳过') |
|
|
|
return |
|
|
|
#删除目录 |
|
|
|
else: |
|
|
|
shutil.rmtree(os.path.join(workdir, action, pid)) |
|
|
|
os.makedirs(os.path.join(workdir, action, pid)) |
|
|
|
|
|
|
|
|
|
|
|
os.makedirs(os.path.join(workdir, action, pid)) |
|
|
|
|
|
|
|
|
|
|
|
# 根据前缀获取文件列表 |
|
|
|
# 根据前缀获取文件列表 |
|
|
|
prefix = f'objs/print/{pid}/base/model/' |
|
|
|
prefix = f'objs/print/{pid}/base/model/' |
|
|
|
|