You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Knora PR dasch-swiss/dsp-api#1191 puts a Knora project ID in the IIIF URL, and stores each project's images in a different directory. We also want to use Sipi's subdir_levels feature inside each of these project directories. But Sipi only creates subdirectories on startup, which means that every time we add a new project, we have to restart Sipi. Could Sipi add the subdirectories on the fly?
Maybe there could be a function like helper.filename_hash, which just returned the hashed directory path, without the filename. Then there could be a function like server.fs.mkdir to create a directory and all of its parent directories if they don't exist. Then a Lua script could do something like this:
After discussion with @lrosenth and @subotic: the directories will be created at startup, but there will also be a new Sipi admin route for adding a new project directory.
Knora PR dasch-swiss/dsp-api#1191 puts a Knora project ID in the IIIF URL, and stores each project's images in a different directory. We also want to use Sipi's
subdir_levels
feature inside each of these project directories. But Sipi only creates subdirectories on startup, which means that every time we add a new project, we have to restart Sipi. Could Sipi add the subdirectories on the fly?Maybe there could be a function like helper.filename_hash, which just returned the hashed directory path, without the filename. Then there could be a function like server.fs.mkdir to create a directory and all of its parent directories if they don't exist. Then a Lua script could do something like this:
The text was updated successfully, but these errors were encountered: