Browse Source

Fix symlink logic

pull/165/head
Ionite 1 year ago
parent
commit
14bfb9ecdc
No known key found for this signature in database
  1. 4
      StabilityMatrix.Core/Models/Packages/ComfyUI.cs

4
StabilityMatrix.Core/Models/Packages/ComfyUI.cs

@ -449,9 +449,9 @@ public class ComfyUI : BaseGitPackage
var sharedInferenceDir = SettingsManager.ImagesInferenceDirectory; var sharedInferenceDir = SettingsManager.ImagesInferenceDirectory;
if (sharedInferenceDir.IsSymbolicLink) if (inferenceDir.IsSymbolicLink)
{ {
if (inferenceDir.Info.ResolveLinkTarget(true) == sharedInferenceDir.Info) if (inferenceDir.Info.ResolveLinkTarget(true)?.FullName == sharedInferenceDir.FullPath)
{ {
// Already valid link, skip // Already valid link, skip
return; return;

Loading…
Cancel
Save