Files
orbits/internal/server/bootstrap/filesystem.go
T
2026-04-23 15:58:02 +02:00

24 lines
338 B
Go

package bootstrap
import (
"os"
"path/filepath"
)
// part of filesystem checking
func EnsureOperation(workDir string) error {
nDirs := []string{
workDir,
filepath.Join(workDir),
filepath.Join(workDir, "content"),
}
for _, p := range nDirs {
if err := os.MkdirAll(p, 0755); err != nil {
return err
}
}
return nil
}