toto04 / webeep-sync

Keep all your WeBeep files synced on your computer!
GNU General Public License v3.0
55 stars 6 forks source link

Add an option to do not create a folder for each single file #23

Closed gubo97000 closed 2 years ago

gubo97000 commented 2 years ago

It's pretty annoying that each file has it's own folder, so an option to remove this behavior would be welcomed; it's also more consistent with the presentation of the actual folder in webeep.

Right now: image Wanted behavior: image

toto04 commented 2 years ago

Thanks for the suggestion! The current behavior comes from the general interpretation of how the Moodle API returns information about files in a course. Basically it turns out that top level single files like those are still shown as inside a folder (or module as they call them in the API) with a single file inside, and on webeep the actual file name is never shown, just the "folder" name. I'll definitely add a special case in the next update to handle this to make the app's behavior more similar to the website's.