Menu

#2256 Silent modification of file names

open
nobody
None
5
2020-05-22
2020-05-20
Florian
No

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

Discussion

  • Igor Pavlov

    Igor Pavlov - 2020-05-20

    it's rare case for most users.
    So the problem is minor.

     
  • Shell

    Shell - 2020-05-21

    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.

     
    • Florian

      Florian - 2020-05-22

      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.

       

Log in to post a comment.