Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#98 Files from subdirectories are extracted to main directory

closed-works-for-me
nobody
None
5
2015-01-24
2010-02-22
No

I tried to extract a 7zip archive which contained a couple of subdirectories and some files within them. However, 7z extracted everything directly to the main directory, ignoring directory tree hierarchy.

What I was supposed to get:

/sprites
/sprites/ogfx1_base
/sprites/ogfx1_extra
/sprites/ogfxc_arctic/9_z2.png
/sprites/ogfxc_arctic/9_z1.png
...

What I got after extracting:

/sprites
/ogfx1_base
/ogfx1_extra
/9_z2.png
/9_z1.png
...

There were about 5000 files in the archive, so I had a lot of careful deleting, and the entire content with lost subdirectory hierarchy was completely useless.

The "corrupted" archive can be dowloaded from here: http://www.filefactory.com/file/b26787f/n/BaseSet_12-2-2010.7z (it's quite big - 87 MB, this is why I'm not adding it as an attachment).

Extract command:
7z e BaseSet_12-2-2010.7z

Operating system:
Arch Linux - x86_64

P7zip version: 9.04

Discussion

  • my p7zip
    my p7zip
    2010-02-28

    I didn't try your archive.

    But , if you want to keep the pathname, try :
    7z x BaseSet_12-2-2010.7z

    the "e" command always extract files without their pathname ...

     
  • my space
    my space
    2010-05-29

    • status: open --> closed-works-for-me