summaryrefslogtreecommitdiff
path: root/pkg/ctime/ctime.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ctime/ctime.go')
-rw-r--r--pkg/ctime/ctime.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/ctime/ctime.go b/pkg/ctime/ctime.go
new file mode 100644
index 000000000..f5c69c7e3
--- /dev/null
+++ b/pkg/ctime/ctime.go
@@ -0,0 +1,12 @@
+// Package ctime includes a utility for determining file-creation times.
+package ctime
+
+import (
+ "os"
+ "time"
+)
+
+// Created returns the file-creation time.
+func Created(fi os.FileInfo) time.Time {
+ return created(fi)
+}