Repository navigation
Description
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.6.1
Affected Android/Custom ROM version
Android 16 / LineageOS 23.2
Affected device model
Samsung Galaxy S10+
How did you install the app?
F-Droid / IzzyOnDroid
Steps to reproduce the bug
- Create a folder on your computer. I created a folder named A on the Desktop of a Debian OS.
- Put many folders and files in it. I created this folder with many things inside so I can copy paste many things in one go to my Android phone.
- Archive the folder as Zip with compression set to store (for no compression).
- Copy the A.zip file (or whatever you called it) to the root of the internal memory.
- Extract it.
Expected behavior
I expecting it will give me the exact folder structure that I had inside.
Meaning:
A single folder called: A
With everything that was inside when I archive it to still be inside, in the same exact hierarchy.
Without anything extra being added.
Actual behavior
The file manager automatically creates a folder named A and then it puts inside of it what I have in the archive.
So the hierarchy is now like this:
A
-A
--The contents of A meanind the folders and files that were inside of it.
Screenshots/Screen recordings
No response
Additional information
I took this route of archiving the folder with everything inside it because the folder is very big, more than 20 GiB and copying-pasting normally takes very long and it's very error-prone, with multiple failures.
Copying a single file seems to be faster and less error-prone.
I've put the archive at the root of the internal storage because there I would've normally copied the folder, if it worked without problems.
So extracting the archive there should've gave me a single A folder at the root of the internal memory and not 2 A folders nested.
The second worst thing is that I cannot even move out the inner A folder as the name will conflict with the outer A folder.
The third worst thing is that the outer A folder cannot me renamed to anything else so I can move the inner A out as I don't see anything in the menu after selecting the out A folder to rename it.
I've tried to rename the outer A folder from the computer and while it looked like it worked, it gave an error after some time about some movement failure.
I see now that this file manager show the outer as renamed, but after that movement error I'm not sure anymore if I still have the same folders and files in it without any problems, so I prefer to delete it and start over.
But unfortunately extracting the archive will give me again the same double folder in a nested way.
I think the same thing happened to me in the past with a .tar archive, so I assume this behavior is the same for all archive files extraction.
Can you please fix it to stop doing these automatic unexpected things?
And in the meantime, give a way to manually stop them, if the proper fix is hard to do and takes a long time?
Thank you!
Activity
PedroFlores199 commentedon Nov 27, 2026
I looked into this.
ItemsAdapter.decompressPaths()always extracts into<archive folder>/<archive name without extension>/<entry>, so an archive that already contains a single top-level folderA/ends up asA/A/....Two related things I noticed while reading that code:
tryDecompressingPaths()checks for conflicts against<archive folder>/<entry>, without that extra folder, so the conflict dialog looks at different paths than the ones that are written afterwards.decompressPaths(sourcePaths, …)is called once per archive with the whole list, so each archive is processed again for every selected archive.What most desktop archive tools do is: if all entries are inside one top-level folder, extract that folder as is; otherwise create a folder named after the archive, so loose files don't spill into the current folder. I can implement that, make the conflict check use the same destination paths, and call
decompressPathsonce per archive.Would that convention work for you? If so, could this get
help wantedso I can open a PR?Danny3 commentedon Nov 27, 2026
From my experience with computers and from what I prefer, the best for me is to extract the content as is in the folder the archive file resides in, as I'm always putting the archive in an empty folder where I can extract it safely and without making a mess somewhere or having conflicts or in a folder like Downloads on the phone where I'm sure that there is not another folder called A already created.
So for me, the best design is to extract its content exactly as it is, without creating a new folder based on the archive name and extract the content into it and have an option to do that in the context me after I touch and hold the archive name.
A second design, not as good for me as the above one, but acceptable I think it would be to be asked before when which version I prefer as extracting 30 or more GiB takes a long time and it's harder to fix afterwards than with a smaller folder.
I don't remember now, but I think that there's also no extraction progress shown anywhere which is pretty bad UI / feedback, but I'm not sure if it can be easily fixed when doing these changes or if there's another issue open for that.
Thanks for looking into this!