2017-11-10 10:16:38 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package times
|
|
|
|
|
2018-11-24 15:31:25 +00:00
|
|
|
import "os"
|
2017-11-10 10:16:38 +00:00
|
|
|
|
2018-11-24 15:31:25 +00:00
|
|
|
// Stat returns the Timespec for the given filename.
|
|
|
|
func Stat(name string) (Timespec, error) {
|
|
|
|
return stat(name, os.Stat)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Lstat returns the Timespec for the given filename, and does not follow Symlinks.
|
|
|
|
func Lstat(name string) (Timespec, error) {
|
|
|
|
return stat(name, os.Lstat)
|
2017-11-10 10:16:38 +00:00
|
|
|
}
|