summaryrefslogtreecommitdiff
path: root/pkg/ctime/ctime_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ctime/ctime_unsupported.go')
-rw-r--r--pkg/ctime/ctime_unsupported.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/ctime/ctime_unsupported.go b/pkg/ctime/ctime_unsupported.go
new file mode 100644
index 000000000..325731353
--- /dev/null
+++ b/pkg/ctime/ctime_unsupported.go
@@ -0,0 +1,12 @@
+// +build !linux
+
+package ctime
+
+import (
+ "os"
+ "time"
+)
+
+func created(fi os.FileInfo) time.Time {
+ return fi.ModTime()
+}