p7zip icon indicating copy to clipboard operation
p7zip copied to clipboard

Query regrading create date time and modified date time of files inside zip

Open nishan-canwill opened this issue 3 years ago • 3 comments

I want to get the creation date time and modified date time for the files inside the zip. I can see them in the GUI but how do I get them through my python program. Any pointers will be helpful.

Screenshot from 2022-06-27 13-54-51

nishan-canwill avatar Jun 27 '22 08:06 nishan-canwill

I would really appreciate any help on this

nishan-canwill avatar Jul 15 '22 14:07 nishan-canwill

You can parse the output of 7z l -slt file.zip (look for Modified = and Created = fields).

antermin avatar Jul 17 '22 02:07 antermin

Be careful when using this Created= in the created archives on Linux, they have the wrong created date.

ExceptionGit avatar Jul 22 '22 16:07 ExceptionGit