Skip to content

Commit 8878015

Browse files
Fix issue with cloning MSU projects into an invalid directory
1 parent b3174af commit 8878015

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MSUScripter/Services/ProjectService.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public void SaveMsuProject(MsuProject project, bool isBackup)
6262
if (!isBackup)
6363
throw;
6464
}
65+
66+
var info = new FileInfo(project.MsuPath);
67+
if (info.Directory?.Exists != true)
68+
{
69+
Directory.CreateDirectory(info.Directory!.FullName);
70+
}
6571

6672
if (!File.Exists(project.MsuPath))
6773
{

0 commit comments

Comments
 (0)