diff --git a/pkg/filesystem/manage.go b/pkg/filesystem/manage.go index 10e9986..cc5277c 100644 --- a/pkg/filesystem/manage.go +++ b/pkg/filesystem/manage.go @@ -384,6 +384,9 @@ func (fs *FileSystem) CreateDirectory(ctx context.Context, fullPath string) (*mo } if fullPath == "/" { + if fs.Root != nil { + return fs.Root, nil + } return fs.User.Root() }