Skip to content

Commit eeb3f31

Browse files
authored
Fix exception when downloading file for a new target (#46)
1 parent 2a2b0ab commit eeb3f31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nanoFirmwareFlasher/FirmwarePackage.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
101101
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
102102
".nanoFramework",
103103
_targetName);
104+
105+
Directory.CreateDirectory(LocationPath);
104106
}
105107
catch
106108
{

0 commit comments

Comments
 (0)