aboutsummaryrefslogtreecommitdiff
path: root/libpod/define/fileinfo.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/define/fileinfo.go')
-rw-r--r--libpod/define/fileinfo.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/libpod/define/fileinfo.go b/libpod/define/fileinfo.go
new file mode 100644
index 000000000..2c7b6fe99
--- /dev/null
+++ b/libpod/define/fileinfo.go
@@ -0,0 +1,16 @@
+package define
+
+import (
+ "os"
+ "time"
+)
+
+// FileInfo describes the attributes of a file or diretory.
+type FileInfo struct {
+ Name string `json:"name"`
+ Size int64 `json:"size"`
+ Mode os.FileMode `json:"mode"`
+ ModTime time.Time `json:"mtime"`
+ IsDir bool `json:"isDir"`
+ LinkTarget string `json:"linkTarget"`
+}