mirror of
https://github.com/rclone/rclone.git
synced 2024-11-27 02:45:16 +01:00
16 lines
334 B
Go
16 lines
334 B
Go
// +build !windows
|
|
|
|
package times
|
|
|
|
import "os"
|
|
|
|
// 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)
|
|
}
|