Re: ZipFile and timestamps

2020-03-18 Thread Manfred Lotz
On Wed, 18 Mar 2020 21:41:10 + MRAB wrote: > On 2020-03-18 20:38, Manfred Lotz wrote: > > I unzip a zip file like follows which works fine. > > > > with ZipFile(zip_file, 'r') as zip: > > zip.extractall(tmp_dir) > > > > The only caveat is that the unpacked files and dirs do have

Re: ZipFile and timestamps

2020-03-18 Thread MRAB
On 2020-03-18 20:38, Manfred Lotz wrote: I unzip a zip file like follows which works fine. with ZipFile(zip_file, 'r') as zip: zip.extractall(tmp_dir) The only caveat is that the unpacked files and dirs do have a current timestamp i.e. the timestamps of the files are not preserved.

ZipFile and timestamps

2020-03-18 Thread Manfred Lotz
I unzip a zip file like follows which works fine. with ZipFile(zip_file, 'r') as zip: zip.extractall(tmp_dir) The only caveat is that the unpacked files and dirs do have a current timestamp i.e. the timestamps of the files are not preserved. Is there a way to tell ZipFile to preserve