aboutsummaryrefslogtreecommitdiff
path: root/internal/scanner/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/scanner/file.go')
-rw-r--r--internal/scanner/file.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/scanner/file.go b/internal/scanner/file.go
new file mode 100644
index 0000000..e48cf2a
--- /dev/null
+++ b/internal/scanner/file.go
@@ -0,0 +1,17 @@
+package scanner
+
+import "time"
+
+// File represents a discovered file on disk.
+//
+// It contains only filesystem information.
+// Higher-level packages enrich it with metadata such as EXIF,
+// dimensions, IDs and thumbnails.
+type File struct {
+ Path string
+ Root string
+ RelativePath string
+
+ Size int64
+ ModTime time.Time
+}