#23 Extracting files with same name from different subdirs

closed-wont-fix
nobody
None
5
2005-03-01
2005-03-01
SGh
No

Here is archive test.7z it contains:

Listing archive: test.7z
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------
2005-02-28 23:51:00 D.... 0 0 arc
2005-02-28 23:47:34 D.... 0 0 arc/1
2005-02-28 23:47:42 D.... 0 0 arc/1234
2005-02-28 23:47:56 D.... 0 0 arc/2
2005-02-28 23:48:04 D.... 0 0 arc/2/998
2005-02-28 23:48:13 D.... 0 0 arc/3
2005-02-28 23:48:20 D.... 0 0 arc/5433
2005-02-28 23:47:34 ....A 5 31 arc/1/TEST
2005-02-28 23:47:47 ....A 8 arc/1234/TEST
2005-02-28 23:48:01 ....A 5 arc/2/TEST
2005-02-28 23:48:09 ....A 7 arc/2/998/TEST
2005-02-28 23:48:17 ....A 5 arc/3/TEST
2005-02-28 23:48:26 ....A 8 arc/5433/TEST
2005-02-28 23:51:00 ....A 5 arc/TEST
------------------- ----- ------------ ------------ ------------
43 31 14 files

When I try to extract file arc/TEST with

$ 7z e test.7z arc/TEST

Then 7z extract arc/1/TEST after that, it extract arc/1234/TEST, and ask me to overwrite file TEST, and so on...

Seems like it is bug, fix it please!

Discussion

  • SGh

    SGh - 2005-03-01

    Logged In: YES
    user_id=1093049

    I forget upload a file...

     
  • SGh

    SGh - 2005-03-01

    Demo archive

     
  • my space

    my space - 2005-03-01

    Logged In: YES
    user_id=336051

    Here is the answer from Igor Pavlov
    (https://sourceforge.net/forum/message.php?msg_id=3024390)

    It's feature.

    -r Enable recurse subdirectories. This option is default for
    these commands:
    e (Extract), l (List), t (Test), x (Extract with full paths).
    so use -r-

    It was so for previous version (3.13) to support such commands:
    7z x archive.zip

    Now probably I can change it, since 4.* scans subfolders for
    "*" mask. I'll
    think about it.

    so use : 7z e -r- test.7z arc/TEST

     
  • my space

    my space - 2005-03-01
    • status: open --> closed-wont-fix
     
  • SGh

    SGh - 2005-03-02

    Logged In: YES
    user_id=1093049

    Thanks for information!

     

Log in to post a comment.