Bug 252420 - ark --forcesubfolder parameter and "Extract into a subfolder" service menu item
Summary: ark --forcesubfolder parameter and "Extract into a subfolder" service menu item
Status: RESOLVED INTENTIONAL
Alias: None
Product: ark
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.15
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2010-09-26 13:05 UTC by ultr
Modified: 2024-03-27 12:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot (91.45 KB, image/png)
2015-12-23 13:44 UTC, Artur Puzio
Details
mycode-v1.tar.gz (169 bytes, application/download)
2016-01-05 13:44 UTC, ultr
Details
mycode-v2.tar.gz (169 bytes, application/download)
2016-01-05 13:44 UTC, ultr
Details
ark-extract-menu.png (30.45 KB, image/png)
2016-01-05 13:44 UTC, ultr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ultr 2010-09-26 13:05:16 UTC
Version:           2.15 (using KDE 4.5.1) 
OS:                Linux

Ark and its service menu definitely lacks an option to force archive extraction into a subfolder:
1) ark --forcesubfolder parameter or similar
2) "Extract into a subfolder" service menu item

I need to extract archives in that way very often (different versions of a same source code, etc.).

Both "extract here" and "autodetect subfolder" will try to overwrite earlier extractions which I don't want.

And forcing creation of a directory with archive's name would automatically version the sources for me.


Reproducible: Didn't try
Comment 1 Raphael Kubo da Costa 2010-12-08 02:19:42 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 2 Artur Puzio 2015-12-23 13:44:36 UTC
Created attachment 96276 [details]
screenshot

This screenshot proves, that the bug is fixed.
Comment 3 Artur Puzio 2015-12-23 13:45:33 UTC
The bug seems to be fixed in version 15.08.0. I attach a screenshot proving it.
Comment 4 Elvis Angelaccio 2015-12-23 18:13:29 UTC
I agree. Let's wait a few days, and if there are no objections from the OP, we can close this report.
Comment 5 ultr 2016-01-05 13:43:23 UTC
I have checked this with Ark 15.08.3 and Plasma 5.4.3 and it still does not work.

Both service menu options for fast extraction:
- 'Extract Archive Here, Autodetect Subfolder' and
- 'Extract Archive Here'
try to overwrite files when extracting both attached archives.

Extracting first archive creates this directory tree:
- mycode
- - a.c
- - a.h
Extracting the other archive tries to overwrite it.

This is OK, but there is no option to 'Extract Into a Subfolder',
so that the directory tree would look like that:
- mycode-v1 (named after the archive file name)
- - mycode
- - - a.c
- - - a.h
- mycode-v2 (named after the archive file name)
- - mycode
- - - a.c
- - - a.h

Without the ark's --forcesubfolder parameter it is not even possible to create the 'Extract Into a Subfolder' service menu item.
Comment 6 ultr 2016-01-05 13:44:15 UTC
Created attachment 96469 [details]
mycode-v1.tar.gz
Comment 7 ultr 2016-01-05 13:44:33 UTC
Created attachment 96470 [details]
mycode-v2.tar.gz
Comment 8 ultr 2016-01-05 13:44:58 UTC
Created attachment 96471 [details]
ark-extract-menu.png
Comment 9 Elvis Angelaccio 2016-01-05 14:08:45 UTC
(In reply to ultr from comment #5)
> there is no option to 'Extract Into a Subfolder',

Have you tried with: Right click -> Extract -> Extract archive To... ?
From that dialog you can check the "Extract into subfolder" option and choose whatever name you want for this subfolder. In this case, the default name is going to be "mycode" and you just need to add "-v1" or "-v2".
Comment 10 ultr 2016-01-05 16:15:38 UTC
> Extract archive To... [...]

This requires a lot more work than simply clicking the menu item.
And does not allow selecting several archives at once for extracting.

Plus the 'Extract Into a Subfolder' option is safest if you don't know the structure of your archives you are about to extract. So I think it should be easily accessible from the service menu.
Otherwise the user is left with this limited set of predefined quick actions none of which is really safe for the data in such cases. Whichever action is selected the user may end up having to reject many overwrite alerts, cancel all the extractions, delete the already extracted data and start over manually extracting archives one by one. Doesn't sound like a user friendly approach.
Comment 11 Elvis Angelaccio 2016-01-05 18:29:08 UTC
(In reply to ultr from comment #10)
> > Extract archive To... [...]
> 
> This requires a lot more work than simply clicking the menu item.
> And does not allow selecting several archives at once for extracting.
> 
> Plus the 'Extract Into a Subfolder' option is safest if you don't know the
> structure of your archives you are about to extract. So I think it should be
> easily accessible from the service menu.
> Otherwise the user is left with this limited set of predefined quick actions
> none of which is really safe for the data in such cases. Whichever action is
> selected the user may end up having to reject many overwrite alerts, cancel
> all the extractions, delete the already extracted data and start over
> manually extracting archives one by one. Doesn't sound like a user friendly
> approach.
I know, it requires more clicks. The thing is, the "Extract" submenu is already kind of cluttered, since it shows three entries. Adding another one would only make it worse. Think of a novice user who has never used Ark and wants to extract an archive: "which one of these four items should I click?".

How about a global option like "Always use the archive name as subfolder name"?
You could simply check it in the settings dialog, once and for all. Then you will extract your archives with the existing "Extract archive here, autodetect subfolder" item.
Comment 12 ultr 2016-01-05 19:05:17 UTC
> How about a global option like "Always use the archive name as subfolder name"?

Personally I'm OK with such solution.
If only it does not confuse users even more :)
Comment 13 Justin Zobel 2021-03-09 05:23:05 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 14 Andrew Shark 2024-03-27 12:43:54 UTC
In this MR we decided to not add such an extra menu item: https://invent.kde.org/utilities/ark/-/issues/17