Use fsx package and friends from pkglib

This commit is contained in:
Tom Wiesing 2023-04-08 17:51:17 +02:00
parent 1f8c55da7c
commit 0f6803f890
No known key found for this signature in database
35 changed files with 91 additions and 493 deletions

View file

@ -9,7 +9,7 @@ import (
"strings"
"github.com/FAU-CDI/wisski-distillery/internal/bootstrap"
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"github.com/tkw1536/pkglib/fsx/umaskfree"
)
// metaConfigFile is the path to a configuration file that contains the path to the last used wdcli executable.
@ -68,5 +68,5 @@ func WriteBaseDirectory(dir string) error {
}
// just put the directory inside it!
return fsx.WriteFile(path, []byte(dir), fs.ModePerm)
return umaskfree.WriteFile(path, []byte(dir), fs.ModePerm)
}