mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 04:19:39 +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)
|
|
}
|