C:\...\directory1\*.txt is not directory.
It's txt file.
so 7-zip stores file data and file metadata: path to that txt file and timestamp of that txt file:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As a work-around, you can create a file with the desired meta-data and add it to the archive. You can hen extract the file of meta-data and process it to adjust the other extracted files. (Keeping mind that the underlying file system may also update some of it, such as last access times...) Of course, this also means you will need to create programs to handle this (Python3 comes to mind, which is relatively easy to install on Windows, and almost always part of the base install of Un*x and Mac OS/X).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
on Windows XP SP3 using 7-Zip 21.07 like
7z a -mx=9 -spf2 -r archive.zip C:\...\directory1\*.txt C:\...\directory2\*.regdoesn't store timestamps of any directories involved.
If i use e.g.
7z a -mx=9 -spf2 -r archive.zip C:\...\directory17-Zip stores only directory1's timestamps.
Bug or feature?
(Edit: Typo.)
Last edit: Opty 2022-02-17
C:\...\directory1\*.txtis not directory.It's
txtfile.so 7-zip stores file data and file metadata: path to that txt file and timestamp of that txt file:
Any better way to store leading directories' metadata than using
C:\top_level_directoryand excluding everything except wanted?no way now.
Do you plan to add such feature?
not now.
maybe later.
why do you need that timestamp?
Last edit: Igor Pavlov 2022-02-18
Oops, I forgot a bit to reply, sorry.
When backing up, I like to store every metadata I reasonably can, just in case.
No more replies so I guess I can mark this as solved.
(Edit: I can't change the subject, oh well...)
Last edit: Opty 2022-03-18
As a work-around, you can create a file with the desired meta-data and add it to the archive. You can hen extract the file of meta-data and process it to adjust the other extracted files. (Keeping mind that the underlying file system may also update some of it, such as last access times...) Of course, this also means you will need to create programs to handle this (Python3 comes to mind, which is relatively easy to install on Windows, and almost always part of the base install of Un*x and Mac OS/X).