rclone/vendor/github.com/djherbis/times/use_generic_stat.go

16 lines
334 B
Go
Raw Normal View History

// +build !windows
package times
2018-11-24 16:31:25 +01:00
import "os"
2018-11-24 16:31:25 +01: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)
}