aboutsummaryrefslogtreecommitdiff
path: root/internal/scanner/scanner.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-12 23:11:32 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-12 23:11:32 +0530
commitca40035398c16abfc78a14e52e3f8640f4eac37c (patch)
treed5c736e39974c908b493845591c3b42019323105 /internal/scanner/scanner.go
parent1ae0b97b73e6ffb1303bcf9043a7d28d158ad791 (diff)
downloadgalleryd-ca40035398c16abfc78a14e52e3f8640f4eac37c.tar.xz
galleryd-ca40035398c16abfc78a14e52e3f8640f4eac37c.zip
feat(scanner): skip hidden directories
fix(code): fix misc. code in scanner and walker
Diffstat (limited to 'internal/scanner/scanner.go')
-rw-r--r--internal/scanner/scanner.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/scanner/scanner.go b/internal/scanner/scanner.go
index cf5490a..68ef4ba 100644
--- a/internal/scanner/scanner.go
+++ b/internal/scanner/scanner.go
@@ -1,6 +1,9 @@
package scanner
-import "context"
+import (
+ "context"
+ "path/filepath"
+)
type Scanner struct {
roots []string
@@ -32,5 +35,5 @@ func (s *Scanner) Scan(ctx context.Context) ([]File, error) {
files = append(files, discovered...)
}
- return nil, nil
+ return files, nil
}