Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
b638a4f6
Commit
b638a4f6
authored
Jul 27, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore not existent libraries dir
parent
0cfc2263
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
arduino/libraries/librariesmanager/librariesmanager.go
arduino/libraries/librariesmanager/librariesmanager.go
+3
-0
No files found.
arduino/libraries/librariesmanager/librariesmanager.go
View file @
b638a4f6
...
...
@@ -173,6 +173,9 @@ func (sc *LibrariesManager) getSketchbookLibrariesDir() *paths.Path {
// nil if the directory doesn't exists.
func
(
sc
*
LibrariesManager
)
LoadLibrariesFromDir
(
librariesDir
*
LibrariesDir
)
error
{
subFolders
,
err
:=
librariesDir
.
Path
.
ReadDir
()
if
os
.
IsNotExist
(
err
)
{
return
nil
}
if
err
!=
nil
{
return
fmt
.
Errorf
(
"reading dir %s: %s"
,
librariesDir
.
Path
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment