mirror of
https://github.com/xiaoqidun/setft.git
synced 2024-04-25 19:54:14 +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)
|
||
|
}
|