Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Mar 2, 2017
1 parent 70a05e5 commit 96dd003
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyquickhelper/filehelper/compression_helper.py
Expand Up @@ -43,6 +43,8 @@ def zip_files(filename, file_set, root=None, fLOG=noLOG):
for file in file_set:
if not os.path.exists(file):
continue
if fLOG:
fLOG("zip", file)
st = os.stat(file)
atime = datetime.datetime.fromtimestamp(st.st_atime)
mtime = datetime.datetime.fromtimestamp(st.st_mtime)
Expand Down Expand Up @@ -86,6 +88,8 @@ def unzip_files(zipf, where_to=None, fLOG=noLOG, fvalid=None, remove_space=True)
files = []
with zipfile.ZipFile(zipf, "r") as file:
for info in file.infolist():
if fLOG:
fLOG("unzip", info.filename)
if where_to is None:
files.append((info.filename, file.read(info.filename)))
else:
Expand Down

0 comments on commit 96dd003

Please sign in to comment.