Menu

7-Zip can't Extract Filenames w/ "spaces"

szfong
2008-06-27
2012-12-08
  • szfong

    szfong - 2008-06-27

    Long filenames w/ spaces before the period of an extension is not properly extracted, eg. "[Very long Filename] .bin" is not extracted properly, I noticed this behavior while extracting the tosec atari 2600 games archived in zip into separate directories.  It is under Vista x86 Home edition.

     
    • Igor Pavlov

      Igor Pavlov - 2008-06-28

      So what name do you have before/after axtracting?

       
    • szfong

      szfong - 2008-06-28

      It is the "Atari 2600 & VCS - Games" version 2006-05-25 w/ 1979 files, each compressed within individual zip files, when extracted those 6 files with spaces before the period individually, they extract OK. When selecting all 6 of them, they also extract OK.  But when selecting ALL at once, all 1979 files and Extract to "*\", those six files do not extract.  They are:

      Euchre (2002-10-01)(Eid, Erik)(NTSC)[Release Candidate 2] .zip
      Ghostbusters II - Easy (2003)(King Atari)(PAL)[h] .zip
      ZZZ-UNK-Dark Mage Mod (19xx)(-)(PD)[b][aka DM-FOOT] .zip
      ZZZ-UNK-Frogger (Official version by Sega)Starpath - .zip
      ZZZ-UNK-Frogger (Preview) (2)Starpath - .zip
      ZZZ-UNK-Frogger (Preview)Starpath -  .zip

      This is kinda strange.  I can send the 6.7MB collection to you and you can extract them to see this particular issue.

       
      • Igor Pavlov

        Igor Pavlov - 2008-06-29

        Do you use Explorer or 7-Zip File Manager?
        If you use Explorer, try to decompress via 7-Zip File Manager.

         
    • szfong

      szfong - 2008-06-30

      Tried BOTH Explorer and 7-Zip File Manager,

      7-Zip: Diagnostic messages
      0  can not open output file C:\Download\Euchre (2002-10-01)(Eid, Erik)(NTSC)[Release Candidate 2] \Euchre (2002-10-01)(Eid, Erik)(NTSC)[Release Candidate 2] .bin

      .
      .
      .

      Also, since the zip file has a space before period, the created individual directories ALSO must have a space after it.  I believe 7-Zip has an issue IF directory created must have a space at the END as well.

      Sincerely,
      -Simon

       
    • Sotho Tal Ker

      Sotho Tal Ker - 2008-07-01

      The reason for the error is that windows automatically deletes trailing spaces from directory names (Try renaming a directory to "test " and observe the result). Thus 7zip cannot find the folder and does not extract the file into it.

       
    • Igor Pavlov

      Igor Pavlov - 2008-07-01

      I'll try to fix it in next version.

       
    • szfong

      szfong - 2008-07-01

      I see, 7-Zip is "choking" when it "tries" to create directories with a space at the end.  Just tried it in the command line, and windows ignores the space.  If a zip file has a space before the period, I guess 7-zip should create a directory that does not have a space, BUT what if you have two or more different zip files with the EXACT SAME name, BUT one with a space, another with 2 spaces, and say another with three spaces before the period, what should 7-zip do then.  A conflict?  Will 7-zip store them all in one directory? create numbered directory names to avoid conflict? ;-)

       
    • John Doe

      John Doe - 2008-07-04

      Try adding a "\" at the end of the extract path. I think I had the same error and this fixed it.

       
    • João Miguel Lopes Moreira

      Lisbon, 04 of July of 2008.

      I think that the forums/open discussion is not the right place to ask or discuss a bug or similar. the right place is tracker/bugs.

      The forums/open discussion, I think, is to communicate about the project (in this case, 7-Zip by Igor Pavlov), and to make business; all this public (without limits and open to every one present).

      (JMLM).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.