fix
This commit is contained in:
parent
6ddc17f386
commit
10b8bc68b0
|
@ -28,9 +28,11 @@ class S:
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.col_image.close()
|
self.col_image.close()
|
||||||
|
cnt = 0
|
||||||
for lp in self.del_images:
|
for lp in self.del_images:
|
||||||
os.remove(lp)
|
os.remove(lp)
|
||||||
logger.Info("{} files removed".format(len(self.del_images)))
|
cnt += 1
|
||||||
|
logger.Info("{} files removed".format(cnt))
|
||||||
|
|
||||||
def upload_img_to_oss(self, local_path: str, oss_src_id: str):
|
def upload_img_to_oss(self, local_path: str, oss_src_id: str):
|
||||||
return self.bucket.put_object_from_file(oss_src_id, local_path)
|
return self.bucket.put_object_from_file(oss_src_id, local_path)
|
||||||
|
|
Loading…
Reference in New Issue