Author Topic: Unpack files function  (Read 2372 times)

ags

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Unpack files function
« on: November 08, 2024, 15:44:24 »
Hello!  :)

Need to unpack files in directories that have the same name as the archive.
There is a check box for this, but it looks like it is greyed-out and cannot be used.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Unpack files function
« Reply #1 on: November 08, 2024, 17:18:17 »
By default it should unpack it into a folder named after the archive..

That setting is if you select multiple files and want to unpack all of them into own subfolders..
« Last Edit: November 08, 2024, 17:20:16 by Mathias (Author) »

ags

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: Unpack files function
« Reply #2 on: November 08, 2024, 17:52:42 »
> That setting is if you select multiple files and want to unpack all of them into own subfolders.
Indeed, if the user selects more archives, the checkbox is automatically selected. A choice that seems a little odd to me.

>By default it should unpack it into a folder named after the archive.
Yes, but this happens in the same directory the archive is.
Consider this scenario:
- in the left side I have an archive;
- I want to unpack it in the right side, in a directory with the same name.
How can I do that fairly common operation with MC?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Unpack files function
« Reply #3 on: November 08, 2024, 18:13:36 »
> That setting is if you select multiple files and want to unpack all of them into own subfolders.
Indeed, if the user selects more archives, the checkbox is automatically selected. A choice that seems a little odd to me.
I think the most common situation is that you want them into separate folders. it is also what is most safe. You risk overwriting files from other archive if you unpack them into same location

>By default it should unpack it into a folder named after the archive.
Yes, but this happens in the same directory the archive is.
Consider this scenario:
- in the left side I have an archive;
- I want to unpack it in the right side, in a directory with the same name.
How can I do that fairly common operation with MC?
Most people expect unpack to end up in same folder. (since it was is happening by default in Windows explorer.)
But you can press the Target button and the entire path is change to the location of the Target panel.
and if you press the checkbox.. the default is change to always use the target panel location.

What you also can do. Is to handle the Zip/7z as a folder and just browse into it and select that you want to copy and copy from it to target as normal,  You do not need to "unpack" to unpack an archive..


ags

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: Unpack files function
« Reply #4 on: November 09, 2024, 05:58:35 »
Quote
Most people expect unpack to end up in same folder. (since it was is happening by default in Windows explorer.)
This might be true to Windows Explorer, which does not have the other half, which the user can use for convenience.
MC is an orthodox file manager, meaning it has a dual panel interface. This is a very good idea, and all the operations and the default settings should be implemented considering this aspect. I am sure the other type of file managers, the Windows Explorer-like ones, also do things their way.
MC should not copy file managers from a different category.
Quote
But you can press the Target button and the entire path is change to the location of the Target panel.
and if you press the checkbox.. the default is change to always use the target panel location.
I know, but this does not help in any way with the creation of a directory for a single archive unpack.

So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Unpack files function
« Reply #5 on: November 09, 2024, 10:38:43 »
Quote
Most people expect unpack to end up in same folder. (since it was is happening by default in Windows explorer.)
This might be true to Windows Explorer, which does not have the other half, which the user can use for convenience.
MC is an orthodox file manager, meaning it has a dual panel interface. This is a very good idea, and all the operations and the default settings should be implemented considering this aspect. I am sure the other type of file managers, the Windows Explorer-like ones, also do things their way.
MC should not copy file managers from a different category.
Quote
But you can press the Target button and the entire path is change to the location of the Target panel.
and if you press the checkbox.. the default is change to always use the target panel location.
I know, but this does not help in any way with the creation of a directory for a single archive unpack.

So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?
Can't please all. so by default it is the safest and most common way.

Not sure what you issue is. It does work like that.
You only have to check the checkbox ONCE.. it will remember that, and after that the target path will always be the target location. and it will place it in a folder named after the archive..




 

ags

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: Unpack files function
« Reply #6 on: November 09, 2024, 13:15:32 »
Quote
Not sure what you issue is.
Quote
So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?

OMG, man!

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4449
    • View Profile
    • Multi Commander
Re: Unpack files function
« Reply #7 on: November 09, 2024, 14:01:39 »
Quote
Not sure what you issue is.
Quote
So my question still stands: I have an archive in panel A. I want to decompress it in panel B (that's why panel B is there - for convenience). My archive does not contain a top level directory so I want MC to create it for me, naming it like the archive. All in a single operation. How can I do that in MC?

OMG, man!

Yes OMG exactly.. This is how it already works..

I can select myfile.zip in panel A.. and just press enter in the unpack dialog and it gets unpack to panel b in a subfolder named after the zip archive.
What with how it already works today is different from what you describe..?



« Last Edit: November 09, 2024, 14:11:36 by Mathias (Author) »

ags

  • Junior Member
  • **
  • Posts: 25
    • View Profile
Re: Unpack files function
« Reply #8 on: November 09, 2024, 17:57:38 »
It works, yes  :)

But there is a complicated, unintuitive path: after checking "Use target path as default location", the user has to unpack the archive in the current directory, not in the other side, because MC does not immediately change the path in "Unpack archives" dialog when the option is checked. The dialog also has to close for MC to save the option.
The next time the dialog is opened, the check mark will be set on "Use target path as default location" and the path from the other side will be filled in the "Unpack to" field.

To avoid all this, and provide the user with an important visual cue that the option"Use target path as default location" actually does something, can you please make MC automatically set the correct path in the field "Unpack to", at the event created when "Use target path as default location" gets checked?
« Last Edit: November 09, 2024, 18:00:20 by ags »