mirror of
https://github.com/safing/portmaster.git
synced 2026-12-04 09:38:21 +00:00
11 lines
227 B
Go
11 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())
|
|
}
|