2
This commit is contained in:
1 parent
bb767caddd
commit
d47e06b16b
1 file changed
+5
-4
@@ -48,10 +48,11 @@ def find_pid_objname(pid):
|
||||
|
||||
def down_obj_from_oss(workdir, pid, action):
|
||||
if os.path.exists(os.path.join(workdir, action, pid)):
|
||||
print(f'目录{os.path.join(workdir, action, pid)}已存在,跳过')
|
||||
return
|
||||
else:
|
||||
os.makedirs(os.path.join(workdir, action, pid))
|
||||
#print(f'目录{os.path.join(workdir, action, pid)}已存在,跳过')
|
||||
#删除目录
|
||||
shutil.rmtree(os.path.join(workdir, action, pid))
|
||||
|
||||
os.makedirs(os.path.join(workdir, action, pid))
|
||||
|
||||
# 根据前缀获取文件列表
|
||||
prefix = f'objs/print/{pid}/base/model/'
|
||||
|
||||
Reference in new issue
Block a user