aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/localfs
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-04 19:01:17 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-04 19:01:17 +0200
commit05a8dbf46792adfef007a0ffbcb654026db036fa (patch)
tree386658904377c695747c3ffe4a288915b0a89917 /pkg/database/localfs
parent311ab744fe1bf278b18c25892497271988399e9a (diff)
downloadlens-05a8dbf46792adfef007a0ffbcb654026db036fa.tar.gz
lens-05a8dbf46792adfef007a0ffbcb654026db036fa.tar.bz2
lens-05a8dbf46792adfef007a0ffbcb654026db036fa.zip
feat: Add use based file scanner
Diffstat (limited to 'pkg/database/localfs')
-rw-r--r--pkg/database/localfs/filesystem.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/database/localfs/filesystem.go b/pkg/database/localfs/filesystem.go
index c7c6458..d516ce9 100644
--- a/pkg/database/localfs/filesystem.go
+++ b/pkg/database/localfs/filesystem.go
@@ -11,10 +11,8 @@ type FileSystemRepository struct {
root string
}
-func NewFileSystemRepository(root string) *FileSystemRepository {
- return &FileSystemRepository{
- root: root,
- }
+func NewFileSystemRepository() *FileSystemRepository {
+ return &FileSystemRepository{}
}
func (self *FileSystemRepository) getFilesFromPath(filepath string) ([]fs.FileInfo, error) {