mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
vendor: vfs add vendor/github.com/djherbis/times
This commit is contained in:
34
vendor/github.com/djherbis/times/times_plan9.go
generated
vendored
Normal file
34
vendor/github.com/djherbis/times/times_plan9.go
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// http://golang.org/src/os/stat_plan9.go
|
||||
|
||||
package times
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
// HasChangeTime and HasBirthTime are true if and only if
|
||||
// the target OS supports them.
|
||||
const (
|
||||
HasChangeTime = false
|
||||
HasBirthTime = false
|
||||
)
|
||||
|
||||
type timespec struct {
|
||||
atime
|
||||
mtime
|
||||
noctime
|
||||
nobtime
|
||||
}
|
||||
|
||||
func getTimespec(fi os.FileInfo) (t timespec) {
|
||||
stat := fi.Sys().(*syscall.Dir)
|
||||
t.atime.v = time.Unix(int64(stat.Atime), 0)
|
||||
t.mtime.v = time.Unix(int64(stat.Mtime), 0)
|
||||
return t
|
||||
}
|
Reference in New Issue
Block a user