* add check + test
* fix test
* add manifest
* fix linter
* add nolint
* separate err cond checks
* only collect relevant plugin files
* skip symlinks
* refactor
* add missing test files + enable scanning Chromium.app/
* remove test since case already covered
* remove unnecessary changes from before
* refactor
* remove comment
(cherry picked from commit 303352a89b)
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
co-authored by
Will Browne
parent
eb018c417d
commit
c9b8c851fa
@@ -46,7 +46,7 @@ func Walk(path string, followSymlinks bool, detectSymlinkInfiniteLoop bool, walk
|
||||
// If symlinkPathsFollowed is not nil, then we need to detect infinite loop.
|
||||
func walk(path string, info os.FileInfo, resolvedPath string, symlinkPathsFollowed map[string]bool, walkFn WalkFunc) error {
|
||||
if info == nil {
|
||||
return errors.New("Walk: Nil FileInfo passed")
|
||||
return errors.New("walk: Nil FileInfo passed")
|
||||
}
|
||||
err := walkFn(resolvedPath, info, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user