diff options
Diffstat (limited to 'internal/jail/jail.go')
-rw-r--r-- | internal/jail/jail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/jail/jail.go b/internal/jail/jail.go index 13b39374..13c6c76d 100644 --- a/internal/jail/jail.go +++ b/internal/jail/jail.go @@ -78,7 +78,7 @@ func (j *Jail) Build() error { } for _, dir := range j.directories { - if err := os.Mkdir(dir.path, dir.mode); err != nil { + if err := os.MkdirAll(dir.path, dir.mode); err != nil { j.removeAll() return fmt.Errorf("can't create directory %q. %s", dir.path, err) } |