diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-12 22:30:08 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-12 22:30:08 +0530 |
| commit | fbe2b4c57226478f9e5831987585caf64cd011cd (patch) | |
| tree | 4db8686ba72a44674fc942e38461baab160b0987 /internal/scanner/file.go | |
| parent | 3f46869a4b4dfbfde87c65dc2be48791e7c1f0ec (diff) | |
| download | galleryd-fbe2b4c57226478f9e5831987585caf64cd011cd.tar.xz galleryd-fbe2b4c57226478f9e5831987585caf64cd011cd.zip | |
feat(scanner): initialise scanner package
Diffstat (limited to 'internal/scanner/file.go')
| -rw-r--r-- | internal/scanner/file.go | 17 |
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 +} |