Skip to content

Nested folder view: some folders are incorrectly shown at top level #150

Open

Description

@ErdlingProductions

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.1.1

Affected Android/Custom ROM version

Android 12 / Stock Firmware

Affected device model

Samsung Galaxy Note 10+ (Exynos)

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

  1. In the top bar, set to folder view
  2. Under settings/view, activate "Group direct subfolders"
  3. Navigate to the top level of the directory tree

Expected behavior

At the top level, either the single toplevel folder should be seen (storage/emulated/0/) or the contents thereof.

Actual behavior

This is my file structure, I highlighted the folders, that are shown at the top level of the gallery (4 + 1 total).

└── storage
    └── emulated
        └── 0
            ├── Android
            │   └── media
            │       └── com.whatsapp
            │           └── WhatsApp
            │               └── Media
            │                   └── WhatsApp Video - SHOWN AT TOP LEVEL
            ├── DCIM
            │   └── several_folders_with_photos_and_videos
            ├── Documents
            │   ├── folder_with_photos_and_videos - SHOWN AT TOP LEVEL
            │   └── folder_with_videos - SHOWN AT TOP LEVEL
            │       ├── videos_1
            │       └── videos_2
            │           └── 15-more-folders-with-videos
            ├── Download
            │   ├── folder_with_pictures_1
            │   └── folder_with_pictures_2
            └── Pictures
                └── Whatsapp - SHOWN AT TOP LEVEL

Additionally to the highlighted folders that are shown, the folder Internal with the path /storage/emulated/ is shown, which contains the folders that are in storage/emulated/0/, in this case DCIM and Download. Maybe the folder 0 is represented as Internal? The folders that are incorrectly shown at the top level do not reoccur in the Internal folder. Note that Documents is not shown in Internal even though only its sub folders are shown at the top level.

I am not sure what's going on here. In my understanding, the top level of the gallery should either be the folder storage/emulated/0 or the contents thereof.

I am happy to provide further information, please request if necessary.

Best regards!

Edit: I moved the two folders in Documents into DCIM. The folder without subfolders is now no longer visible in the top level. However the folder with subfolders is still visible at the top level.

Activity

  1. added
    bug
    needs triage
    on Feb 28, 2024
  2. added and removed
    bug
    needs triage
    on Feb 28, 2024
  3. Hargan2 commented on Mar 30, 2024

    @Hargan2

    I think the issue I was about to report is related to this, hopefully the following information is useful:
    Folders that have no media, which contain a subfolder that also has no media, which contains another subfolder that does have media, results in only the subfolder(s) with media getting displayed at top level.

    For example, on my S21 Ultra I have a folder tree that looks like this:

    storage/emulated/0/photos/
    ├─ Subfolder A/
    │ ├─ Subfolder A1/
    │ │ ├─ media
    │ ├─ Subfolder A2/
    │ │ ├─ media
    │ ├─ Subfolder A3/
    │ │ ├─ media

    Subfolders A1, A2, and A3 all display at the top level, bypassing the "photos" and "Subfolder A" folders entirely, resulting in a disorganised mess where all albums are displayed instead of being neatly placed in one folder with subfolders.
    Placing all media in subfolder A does fix this, allowing for the "photos" album to show up with "subfolder A" as the direct subfolder but that defeats the point. It seems like the app only checks for literal direct subfolders, going exactly one folder deep, and if it doesn't find any media, it sort of skips until it does and displays the folders with media at the top level regardless of how far down the folder tree they are.

  4. AdityaMishra135 commented on Sep 8, 2024

    @AdityaMishra135

    @Aga-C @naveensingh When this feature coming plz bro.

  5. naveensingh commented on Sep 8, 2024

    @naveensingh
    Member

    @AdityaMishra135 I'll check it soon...

  6. Simon1511 commented on Oct 27, 2024

    @Simon1511

    What really bugs me in addition to this issue is that the current opened group will always be shown as another folder inside the group.

    For example:

    I have /Internal Storage/Stuff/topfolder1/ and /topfolder2/ directory structure. All folders (Stuff, topfolder1, topfolder2) contain their own media files.

    On the homescreen they'll all together be grouped as "Stuff", which is fine.
    When you then open the "Stuff" group it'll show another folder called "Stuff" alongside "topfolder1" and "topfolder2", instead of showing "Stuff" (group) -> "Stuff" (folder) -> topfolder1 and topfolder2.

    I'm not sure but adding actual "folder nesting" would probably solve both issues.

  7. AdityaMishra135 commented on Nov 2, 2024

    @AdityaMishra135

    @AdityaMishra135 I'll check it soon...
    Bro

  8. AdityaMishra135 commented on Nov 7, 2024

    @AdityaMishra135

    @AdityaMishra135 I'll check it soon...

    @naveensingh @Aga-C bro wen ?

  9. naveensingh commented on Nov 7, 2024

    @naveensingh
    Member

    @AdityaMishra135 haven't had the time yet.

  10. self-assigned this
    on Jan 30, 2025
  11. added
    feature request
    and removed on Apr 4, 2025
  12. added
    bug
    and removed
    feature request
    on Apr 13, 2025
  13. YoJimbo0321 commented on May 11, 2025

    @YoJimbo0321

    I have the same issue. I was going crazy experimenting and trying to find out why my folders were "disappearing", until, like @Hargan2, I realized that the issue lies with folders that don't contain media directly, but DO contain a level 1 sub-folder, which ALSO doesn't contain media directly, but does contain a level 2 sub-folder which contains media (root/Internal/Pictures/level0/level1/level2/media).

    One practical example is that I have a Travel photos album structured as Travel/"Country or City"/"Place"/(photos). The Travel level 0 folder contains no media directly, as all of the media is sorted into "Country or City" level 1 sub-folders. Some of those "Country or City" level 1 sub-folders also contains no media directly, as all of the media is sorted into "Place" level 2 sub-folders. In those cases, the "Place" level 2 sub-folders that should be displayed AS sub-folders within the gallery app (root/Internal/Pictures/Travel/"Country or City"/"Place") are instead displayed in the gallery app's root directory (root/"Place").

    Because of this, I also cannot access or edit (ex. rename) the empty "Country or City" level 1 sub-folder within the gallery app.

  14. jil49300 commented on Oct 15, 2026

    @jil49300

    Hello,

    I can confirm that this issue is still present in Fossify Gallery 1.14.0 on my Google Pixel 8 Pro.

    The problem is particularly noticeable when enabling "Subfolder Mode": most top-level folders (Download, Pictures, relooking, etc.) are grouped under a virtual folder called "Internal", while other folders such as Camera and WhatsApp Images remain directly visible.

    Disabling Subfolder Mode produces the opposite problem: all nested folders appear at the top level, completely flattening the hierarchy.

    Expected behavior: The internal storage root should be treated as the starting point of navigation, not as an additional folder. Its immediate children should be displayed directly, and their subfolders should only appear when opening the corresponding parent folder.

    Could this behavior be corrected, or could an option be added to choose the navigation root?

    I've attached screenshots showing both display modes and the contents of the "Internal" folder.

    Thank you for your work on this excellent application!

  15. HoldYourWaffle commented on Oct 26, 2026

    @HoldYourWaffle

    Just ran into this as well, "Group direct subfolders" seems to behave quite erratically.

    I'd love to take a shot at fixing this, though I'm not entirely sure how this feature was intended. I expected/was looking for a basic "browse the file system hierarchy"-mode, which seems to match the other comments.
    Was that indeed the intention, or should that be a different mode? Either way I'd love some pointers from experienced contributors on where in the codebase to start looking :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions