Author Topic: Cannot uncompress from zip directly to MTP device  (Read 1008 times)

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Cannot uncompress from zip directly to MTP device
« on: January 16, 2025, 16:37:21 »
Trying to uncompress from a zip file to a phone. The zip file is on local storage.
The zip file is not the issue, it does this for any zip file.

MC throwh this cryptic message: Unknown Error (0).

FileOperations Log says this:
2025-01-16 17:28:38.886 Unable to open target file : WPD:\ONEPLUS A5000\Internal shared storage\Installs\[***].apk ( Error code : 0, Internal Error Code : 0)
2025-01-16 17:28:38.886 Handle file Operations error : 0 (0) -


That's a lot of zeroes all over the log, haha! ;)

Mathias, do you think it is related to the fact that you upgraded the zip plugin lately because of my bug report with the empty directories packing?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #1 on: January 16, 2025, 16:44:42 »
No, unsupported senario.
WPD does not support stream read/writes.. it only support Upload/Download to WPD device from/to local disk.

Automatic middle storage on local drive (%temp%) and then copy to Extension is planed.

Btw you should get a dialog saying "Operation is not support supported for this fs/archive"
How did you start the copy operation ?
« Last Edit: January 16, 2025, 16:52:56 by Mathias (Author) »

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #2 on: January 16, 2025, 19:05:50 »
Quote
Automatic middle storage on local drive (%temp%) and then copy to Extension is planed.
Great, this will solve my problem nicely. And I suspect it would address other problems as well :)

Quote
Btw you should get a dialog saying "Operation is not support supported for this fs/archive"

MC did not show a dialog with the warning of operation not supported. This dialog would have cleared things up. But more than the dialog, I am wishing for the %temp% implementation. Then the dialog would not be necessary in this case. :))

Quote
How did you start the copy operation ?
I opened the zip with <Enter> and then <F5> on a file from inside to copy just that file to the phone.

« Last Edit: January 16, 2025, 19:08:28 by ags »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #3 on: January 16, 2025, 19:24:32 »
Strange, if I navigate into the zip and start a copy operation to WPD, I get the dialog saying it it not possible.
Not sure what you did to get around that



ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #4 on: January 16, 2025, 20:24:20 »
I don't think I did something to not show the warning. Maybe MC is not hardcoded to show that in my case?
Here is a video that may bring some clarity: https://streamable.com/gjehzd (only hosted for two days).
In the video I drag the file with the mouse instead of pressing F5, to be clearer what I did.
« Last Edit: January 16, 2025, 20:26:31 by ags »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #5 on: January 16, 2025, 21:50:55 »
Strange I can not make that happened..

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #6 on: January 17, 2025, 09:48:40 »
I wonder if the OS has a part in this? In the sense that different Windows versions would report slightly different things to MC, leading to different user experiences?
I am on Windows 11 x64, 24H2 (OS Build 26100.2152)

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #7 on: January 18, 2025, 09:49:12 »
Update: tested this on Windows 10 and MC still does not show the dialog saying it not possible.
So it does not depend on Windows' implementation of MTP protocol. It is something in MC itself.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #8 on: Yesterday at 12:50:38 »
Forgot that people uses the mouse to do copy.
Think it is becuse you use drag n drop.. Drag to copy do so much more (so that it can be dragged externally and so on..) so it mess something up I guess..


ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #9 on: Yesterday at 16:30:25 »
I do not usually drag-and-drop with the mouse for copy. As I mentioned in the post above, I used drag-and-drop just for clarity: I wanted you to be able to see all my actions on the video. Normally I use F5 for copy in all cases.

Again, regarding using drag-and-drop or F5, it doesn't really matter in this case. Either way, MC does not show the dialog saying it not possible to do that action.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #10 on: Yesterday at 23:04:01 »
Using F5 it shows the dialog.. Drag and drop do not show it because it gets in using another way..

« Last Edit: Yesterday at 23:13:38 by Mathias (Author) »

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #11 on: Today at 00:29:58 »
I am making another attempt here to clarify things. And bring objective proof to sustain my bug report.
In the video, in the left I have the phone, in the right I have the archive.
I am making 4 attempts to copy one file from the archive to the phone.
The first 2 are started by key F5. The last 2 are by dragging.
As you can see, from the user's perspective they are absolutely identical, because they produce identical results. One of them being that MC does not show the dialog saying it not possible to do that copy. And the other being that the operation fails.
Now, it would be much preferable to fix this by uncompressing into %temp% and copy from there to phone.
I mean much preferable to just showing a dialog that it is not possible. :D
https://streamable.com/1cjyj6

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4533
    • View Profile
    • Multi Commander
Re: Cannot uncompress from zip directly to MTP device
« Reply #12 on: Today at 07:44:09 »
That I can't reproduce. I can only reproduce it using Drag and drop.
Might be fixed so dialog is shown. Fixing to uncompress to temp in the future some day. That is directly a quick fix. It require a lot of work and I got other thing in the pipe before that. and Time I get to work on MC is also limited.

ags

  • Active Member
  • ***
  • Posts: 53
    • View Profile
Re: Cannot uncompress from zip directly to MTP device
« Reply #13 on: Today at 08:12:07 »
Ok, thanks. It's good to know it is on your todo list.