Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Feb 5, 2024
1 parent ede70f7 commit 9620e6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion space/checkers/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ func (r linuxFileSystemReader) Glob(pattern string) ([]string, error) {
}

func NewFileSystemChecker(dbPath string) FileSystemChecker {
return NewFileSystemCheckerWithReader(dbPath, linuxFileSystemReader{})
}

func NewFileSystemCheckerWithReader(dbPath string, fsReader FileSystemReader) FileSystemChecker {
return FileSystemChecker{
dbPath: dbPath,
fsReader: linuxFileSystemReader{},
fsReader: fsReader,
}
}

Expand Down

0 comments on commit 9620e6d

Please sign in to comment.