Is there any way to go from photo album -> folder?

I have my photos neatly organized into albums using NextCloud Memories. Now I want to export them (maintaining the album structure) but I can’t find a way to do it.

Assume I can’t download the photos using the main album download button. I’ve spent months trying to make Nextcloud download things reliably using a browser but I long gave up. Every time I download an album, the resulting zip file complains of header errors when trying to extract it so I don’t trust the downloads at all.

What I have been doing instead is using rclone for uploading and downloading files using WebDAV. But that only works with NextCloud folders.

So my idea is that I can download my photos organized by albums if I can somehow convert albums to NC folders. rclone, using WebDAV, does not see the organizational structure of albums so this is the only way it could work I think.

I have the same need !
I just have bunch of folders from different sources, that I’m organizing into Memory (or default photo App) Albums.
However I wish the files to be organized in name of the album at the root.
It would help me clean my files

+1 needed.
I can code maybe we could turn it into a plugin ?