Server: slight directory fixes

This commit is contained in:
2025-04-13 20:37:12 +02:00
parent 83e0f6eb0a
commit 77177414eb
7 changed files with 198 additions and 186 deletions

View File

@@ -74,6 +74,10 @@ public class DhfsFuse extends FuseStubFS {
void init(@Observes @Priority(100000) StartupEvent event) {
if (!enabled) return;
Paths.get(root).toFile().mkdirs();
if (!Paths.get(root).toFile().isDirectory())
throw new IllegalStateException("Could not create directory " + root);
Log.info("Mounting with root " + root);
var uid = new UnixSystem().getUid();