about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-15 21:31:51 +0100
committerEmile <hanemile@protonmail.com>2020-03-15 21:31:51 +0100
commit163172851e0b2d2b1e107016e1ebeb1ead779c95 (patch)
tree1df735ffcbe75ac8821896cee0e82effc9868593
parent8f75b7285b7d1c48fb11124be6b85a1a7a5e28fe (diff)
item
-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
+}