After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772836 - archive Extraction: don't create a parent directory when not required
archive Extraction: don't create a parent directory when not required
Status: RESOLVED DUPLICATE of bug 771418
Product: nautilus
Classification: Core
Component: general
master
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-13 05:44 UTC by Mohammed Sadiq
Modified: 2016-10-22 03:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mohammed Sadiq 2016-10-13 05:44:31 UTC
The new Nautilus file extraction always creates a parent directory with name of archive. It can be considered not to create a parent directory on certain occasion.

That is, when the archive contain only one directory and all files are within the directory, don't create a parent directory.

Eg:
1. Download the file: http://ftp.gnome.org/pub/GNOME/core/3.22/3.22.1/sources/yelp-tools-3.18.0.tar.xz
2. Extract the file using right click -> Extract here

The following is the tree view of the output:
.
└── yelp-tools-3.18.0
    └── yelp-tools-3.18.0
        ├── aclocal.m4
        ├── AUTHORS
        ............

When extracted with 'tar xf yelp-tools-3.18.0.tar.xz' the following is the tree view:
.
└── yelp-tools-3.18.0
    ├── aclocal.m4
    ├── AUTHORS
    ............

So when parent directory has the same name as the only child directory, avoid creating the parent directory. (Do the same way as the 'tar' output above)

Sorry for being verbose. :-)

Thanks.
Comment 1 Robert Roth 2016-10-22 03:16:20 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 771418 ***