mirror of
https://github.com/xiaoqidun/setft.git
synced 2026-01-09 07:20:22 +08:00
13 lines
189 B
Go
13 lines
189 B
Go
//go:build !windows && !darwin
|
|
|
|
package setft
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
func SetFileTime(path string, atime, ctime, mtime time.Time) (err error) {
|
|
return os.Chtimes(path, atime, mtime)
|
|
}
|