mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
10 lines
227 B
Go
10 lines
227 B
Go
//go:build !windows
|
|
|
|
package utils
|
|
|
|
import "os"
|
|
|
|
// SetFilePermission sets the permission of a file or directory.
|
|
func SetFilePermission(path string, perm FSPermission) error {
|
|
return os.Chmod(path, perm.AsUnixPermission())
|
|
}
|