mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
16 lines
239 B
Go
16 lines
239 B
Go
// +build !windows
|
|
|
|
package util
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func SetFileModeForPath(name string, mode os.FileMode) error {
|
|
return os.Chmod(name, mode)
|
|
}
|
|
|
|
func SetFileModeForFile(file *os.File, mode os.FileMode) error {
|
|
return file.Chmod(mode)
|
|
}
|