Silent modification of file names
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Hi,
I've just unpacked a ZIP archive which contains files with a ':' in their names. That character is forbidden at least on Windows machines. Surprisingly, 7-Zip silently modified the file names upon unpacking them on-the-fly and replaced the ':' by '_'.
Basically this is a good idea, but as a user, I'd like to be notified/warned if such a thing happens. In the end, it's a modification of data (This is why I created this ticket as "bug").
In my case for example, this led to confusions, because a subsequently running sync tool naturally found differences between the ZIP archive and the unpacked directory.
Kind regards
Florian
it's rare case for most users.
So the problem is minor.
The colon has another meaning in modern Windows systems: it indicates that an alternate data stream is present (and its name is the part of file name after the colon). Currently, 7-Zip masks the colon upon extraction, but it compresses ADS's if they are explicitly mentioned in the list of files to compress.
I think 7-Zip could support ADS's: if file name contains a single colon after the second symbol, then treat this item as an ADS and extract it (maybe with a warning) instead of masking out the colon.
This ticket is about notifying the user on modification of file names. Sounds like the topic of how to handle NTFS ADSes doesn't belong here but rather is a separate feature request.