2
This commit is contained in:
1 parent
bb767caddd
commit
d47e06b16b
1 file changed
+4
-3
@@ -48,9 +48,10 @@ 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))
|
||||||
|
|
||||||
# 根据前缀获取文件列表
|
# 根据前缀获取文件列表
|
||||||
|
|||||||
Reference in new issue
Block a user