crowdsec/pkg/database/file_utils.go

12 lines
153 B
Go

//go:build !windows
package database
import (
"io/fs"
"os"
)
func setFilePerm(path string, mode fs.FileMode) error {
return os.Chmod(path, mode)
}