Skip to content

Commit 797981d

Browse files
Limit recursiveness during the library loading process
1 parent bfb5f3f commit 797981d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arduino/libraries/loader.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ func addExamplesToPathList(examplesPath *paths.Path, list *paths.PathList) error
184184
_, err := sketch.New(file)
185185
if err == nil {
186186
list.Add(file)
187-
} else if file.IsDir() {
187+
} else if isDir, err := file.IsDirCheck(); err != nil {
188+
return err
189+
} else if isDir {
188190
if err := addExamplesToPathList(file, list); err != nil {
189191
return err
190192
}

0 commit comments

Comments
 (0)