From 05a8dbf46792adfef007a0ffbcb654026db036fa Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 4 Jul 2023 19:01:17 +0200 Subject: feat: Add use based file scanner --- pkg/database/localfs/filesystem.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/database') 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) { -- cgit v1.2.3