about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/structs/item.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/structs/item.go b/src/structs/item.go
new file mode 100644
index 0000000..085ce5c
--- /dev/null
+++ b/src/structs/item.go
@@ -0,0 +1,15 @@
+package structs
+
+// Items defines multiple files or directories
+type Items []Item
+
+// Item describes a file or directory
+type Item struct {
+	IsDir        bool
+	Name         string
+	HumanSize    int64
+	HumanModTime string
+	IsSymlink    bool
+	URL          string
+	Size         string
+}