Browse Source

ok maybe this time

pull/55/head
JT 1 year ago
parent
commit
3614248cc9
  1. 7
      StabilityMatrix.Core/Helper/SharedFolders.cs

7
StabilityMatrix.Core/Helper/SharedFolders.cs

@ -1,4 +1,5 @@
using NLog;
using System.Globalization;
using NLog;
using StabilityMatrix.Core.Extensions;
using StabilityMatrix.Core.Helper.Factory;
using StabilityMatrix.Core.Models;
@ -30,8 +31,8 @@ public class SharedFolders : ISharedFolders
}
else
{
// Create directory if it doesn't exist, since CreateSymbolicLink doesn't seem to
Directory.CreateDirectory(junctionDir);
// Create parent directory if it doesn't exist, since CreateSymbolicLink doesn't seem to
new DirectoryPath(junctionDir).Parent?.Create();
Directory.CreateSymbolicLink(junctionDir, targetDir);
}
}

Loading…
Cancel
Save