mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +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/openziti-test-kitchen/zrok/tui"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
const V = "v0.3"
|
const V = "v0.3"
|
||||||
@ -42,6 +43,9 @@ func writeMetadata() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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 {
|
if err := os.WriteFile(mf, data, os.FileMode(0400)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user