mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
mkdirall
This commit is contained in:
parent
6cec74c2ec
commit
c4c497b88e
@ -5,6 +5,7 @@ import (
|
||||
"github.com/openziti-test-kitchen/zrok/tui"
|
||||
"github.com/pkg/errors"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
const V = "v0.3"
|
||||
@ -42,6 +43,9 @@ func writeMetadata() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.MkdirAll(filepath.Dir(mf), os.FileMode(0700)); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := os.WriteFile(mf, data, os.FileMode(0400)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user