}
}
+func CreateDirectoryExists(path string, mode fs.FileMode) {
+ err := os.Mkdir(path, 0700)
+ if err != nil && !os.IsExist(err) {
+ panic(err)
+ }
+ err = os.Chmod(path, mode)
+ if err != nil {
+ panic(err)
+ }
+}
+
func CreateFifo(path string, mode fs.FileMode) {
err := syscall.Mkfifo(path, 0600)
if err != nil {