Skip to content
Snippets Groups Projects
Commit b5a77781 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

added cleaning remaining corrupted download zipfiles in L1C folder with tile.clean_lib

parent b6ebc965
No related branches found
No related tags found
No related merge requests found
......@@ -1421,6 +1421,26 @@ class Tile:
"Can't remove {} from L1C folder".format(f.name)
)
# research residual zipfiles in l1c folder
for f in chain(
self._paths["l1c"].glob("*L1C*.zip"),
# self._paths["l1c"].glob("*L2A*.tmp"),
):
txt = "Identified remaining {} in L1C folder".format(f.name)
prob_id.append(txt)
logger.info(txt)
nb_id += 1
if remove:
# try:
f.unlink()
logger.info("Removing {} from L1C folder".format(f.name))
nb_rm += 1
# except:
# logger.error(
# "Can't remove {} from L1C folder".format(f.name)
# )
# identify corrupted zip extractions from l1c folder
for f in chain(
self._paths["l1c"].glob("*L1C*"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment