#888390 /usr/bin/7z: Flat extract creates empty directories

Package:
p7zip-full
Source:
p7zip
Description:
7z and 7za file archivers with high compression ratio
Submitter:
Ankman
Date:
2025-03-14 14:51:04 UTC
Severity:
normal
Tags:
#888390#5
Date:
2018-01-24 23:21:06 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

Extrating files "flat" (no directory structure wanted)

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

7z e some_file.7z

   * What was the outcome of this action?

It created empty directories

   * What outcome did you expect instead?

Not to create directories.

Please note that "7z x some_file.7z" does work as expected (creating directories WITH content).

Also that unrar has a similar syntax, and there "unrar e some_file.rar" does NOT create (let alone empty) directories, as expected.

*** End of the template - remove these template lines ***