qgis / qgis-js

QGIS core ported to WebAssembly to run it on the web platform
https://qgis.github.io/qgis-js
GNU General Public License v2.0
164 stars 8 forks source link

qgis-js/utils - loadRemoteProjects cannot handle files in subdirectories #31

Closed amuedespacher closed 5 months ago

amuedespacher commented 6 months ago

Steps to reproduce:

Actual result:

Expected result:

Current code: https://github.com/qgis/qgis-js/blob/main/packages/qgis-js-utils/src/fs/RemoteProject.ts

boardend commented 6 months ago

RemoteProjects are lacking the subFoldersToCreate-logic from LocalProject.Therefore subdirectories work with local projects, but not with remote projects.

There is potential to share this logic between all Project-subclasses. Will look into that.

amuedespacher commented 4 months ago

Successfully tested with folders and subfolders. Thanks for the fix, @boardend.