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

handle a few more edge cases with symlinks #805

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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