Skip to content

Commit f3be481

Browse files
committed
Auto-create data dir when updating lib indexes
1 parent 5dc0340 commit f3be481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: arduino/libraries/librariesmanager/download.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var LibraryIndexURL, _ = url.Parse("https://downloads.arduino.cc/libraries/libra
2828

2929
// UpdateIndex downloads the libraries index file from Arduino repository.
3030
func (lm *LibrariesManager) UpdateIndex() (*downloader.Downloader, error) {
31+
lm.IndexFile.Parent().MkdirAll()
3132
lm.IndexFile.Remove()
3233
// TODO: Download from gzipped URL index
3334
return downloader.Download(lm.IndexFile.String(), LibraryIndexURL.String())

0 commit comments

Comments
 (0)