When extracting multiple similar archives with only one top-level
element, user usually wants to have them in a destination directory
named after archive's name.
Currently the first archive is extracted to a directory named after
the single top-level element while other archives are extracted
to directories named after archive's basename.
The --force-basename option is forcing the latter behaviour for every
archive.
For example, let's say we have two archives, with only one top-level
directory in them (called var):
$ ls BundleLogs*zip
BundleLogs-1495008842230.zip BundleLogs-1495008843374.zip
When extracting multiple similar archives with only one top-level element, user usually wants to have them in a destination directory named after archive's name.
Currently the first archive is extracted to a directory named after the single top-level element while other archives are extracted to directories named after archive's basename.
The
--force-basename
option is forcing the latter behaviour for every archive.For example, let's say we have two archives, with only one top-level directory in them (called
var
):When trying to unpack them at once:
The default behaviour leaves us with:
Using
--force-basename
option:We get the following result: