mirror of
https://github.com/xiaoqidun/setft.git
synced 2024-05-06 00:44:15 +08:00
13 lines
177 B
Go
13 lines
177 B
Go
// +build !windows
|
|
|
|
package setft
|
|
|
|
import (
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
func SetFileTime(path string, atime, ctime, mtime time.Time) (err error) {
|
|
return os.Chtimes(path, atime, mtime)
|
|
}
|