diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-04 19:01:17 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-04 19:01:17 +0200 |
commit | 05a8dbf46792adfef007a0ffbcb654026db036fa (patch) | |
tree | 386658904377c695747c3ffe4a288915b0a89917 /pkg/database | |
parent | 311ab744fe1bf278b18c25892497271988399e9a (diff) | |
download | lens-05a8dbf46792adfef007a0ffbcb654026db036fa.tar.gz lens-05a8dbf46792adfef007a0ffbcb654026db036fa.tar.bz2 lens-05a8dbf46792adfef007a0ffbcb654026db036fa.zip |
feat: Add use based file scanner
Diffstat (limited to 'pkg/database')
-rw-r--r-- | pkg/database/localfs/filesystem.go | 6 |
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) { |