From 57a787e6b4a7a9f907ccc5bb67bfddbe8f79e2bd Mon Sep 17 00:00:00 2001 From: Zhenfu Shi Date: Tue, 7 May 2024 11:09:43 -0400 Subject: [PATCH] LogWatcher: handle symlink (#782) --- Dotnet/LogWatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dotnet/LogWatcher.cs b/Dotnet/LogWatcher.cs index ef83a1a8..d605aa09 100644 --- a/Dotnet/LogWatcher.cs +++ b/Dotnet/LogWatcher.cs @@ -116,7 +116,7 @@ namespace VRCX var deletedNameSet = new HashSet(m_LogContextMap.Keys); m_LogDirectoryInfo.Refresh(); - if (m_LogDirectoryInfo.Exists) + if ((m_LogDirectoryInfo.LinkTarget == null & m_LogDirectoryInfo.Exists) | Directory.Exists(m_LogDirectoryInfo.LinkTarget)) { var fileInfos = m_LogDirectoryInfo.GetFiles("output_log_*.txt", SearchOption.TopDirectoryOnly);