From 163172851e0b2d2b1e107016e1ebeb1ead779c95 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 15 Mar 2020 21:31:51 +0100 Subject: item --- src/structs/item.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/structs/item.go (limited to 'src') 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 +} -- cgit 1.4.1