Skip to content

Commit d05a742

Browse files
phdMassimiliano Pippi
authored andcommitted
check if PackagesDir exists when reporting it in HardwareDirectories() (arduino#533)
1 parent 49897ef commit d05a742

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configuration/directories.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ func HardwareDirectories() paths.PathList {
3333
}
3434

3535
if viper.IsSet("directories.Data") {
36-
res.Add(PackagesDir())
36+
packagesDir := PackagesDir()
37+
if packagesDir.IsDir() {
38+
res.Add(packagesDir)
39+
}
3740
}
3841

3942
if viper.IsSet("directories.User") {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy