Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
handle a few more edge cases with symlinks (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Apr 8, 2021
1 parent 080f1e3 commit 2909863
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Editor/Utilities/SymbolicLinks/SymbolicLinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ private static bool IsSymbolicPath(string path)
return false;
}

Debug.LogError($"Invalid path: {path}");
if (DebugEnabled)
{
Debug.LogError($"Invalid path: {path}");
}

return false;
}

Expand Down Expand Up @@ -484,6 +488,10 @@ private static bool VerifySymbolicLink(string targetAbsolutePath)

return isValid && Directory.Exists(targetAbsolutePath);
}
catch (ThreadAbortException)
{
return false;
}
catch (Exception e)
{
Debug.LogError(e);
Expand Down

0 comments on commit 2909863

Please sign in to comment.