1
This commit is contained in:
1 parent
20c79b5bc0
commit
bff33df185
1 file changed
+5
-5
@@ -48,12 +48,12 @@ def get_photo2_align_info(pid):
|
||||
#判断是否存在该目录
|
||||
if os.path.exists(os.path.join(config.workdir, pid)) == False:
|
||||
#下载照片
|
||||
libs.down_from_oss(config.oss_bucket, config.workdir, pid)
|
||||
libs.down_from_oss_photo2(config.oss_bucket, config.workdir, pid)
|
||||
else:
|
||||
#移除文件夹
|
||||
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
|
||||
#下载照片
|
||||
libs.down_from_oss(config.oss_bucket, config.workdir, pid)
|
||||
# #移除文件夹
|
||||
# shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
|
||||
# #下载照片
|
||||
# libs.down_from_oss_photo2(config.oss_bucket, config.workdir, pid)
|
||||
|
||||
#判断是否存在该目录
|
||||
print(f"影棚号:{psid} , {config.oss_bucket.object_exists(f'xmps_new_studio_rate/{psid}/')}")
|
||||
|
||||
Reference in new issue
Block a user