Description
Example nextcloud-like temporary share URLs:
https://fz-juelich.sciebo.de/s/JUjJbWgFDturcHc/download?path=/cars&files=4horsemen.jpg
This points to a file 4horsemen.jpg
in a folder /cars
in a folder share. Those shares are very useful. They need no user management, can be password-protected, and expire after a customizable duration.
If a dataset has been exported to such a nextcloud instance (e.g. webdav
filetree push), and shared in that way, we can add file availability info to each file using URLs like the one above, and have them be handled by uncurl
. To make this complete, we need to define a match-expression for that URL like
(?P<site>https://[^/]+)/s/(?P<accesscode>[^/]+)/download\?path=/(?P<dir>[^&]+)&files=(?P<file>.*)$
If #157 is resolved, an alternative accesscode
could be supplied via the configuration at runtime, and (re-)enable a download via a future temporary share, which is structurally identical, except for a different accesscode.