From 88f7c5675743b13182808f68a81779f566a40234 Mon Sep 17 00:00:00 2001 From: ruvceskistefan <96768603+ruvceskistefan@users.noreply.github.com> Date: Thu, 28 Apr 2022 04:16:03 +0200 Subject: [PATCH] Issue 1528: use OS specific path separator (#1617) * Issue 1528: use OS specific path separator * Using Path.Combine instead of OS specific c_defaultPathSeparator --- src/Sdk/Common/Common/ClientStorage/VssFileStorage.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Sdk/Common/Common/ClientStorage/VssFileStorage.cs b/src/Sdk/Common/Common/ClientStorage/VssFileStorage.cs index 3f755b794..50a281697 100644 --- a/src/Sdk/Common/Common/ClientStorage/VssFileStorage.cs +++ b/src/Sdk/Common/Common/ClientStorage/VssFileStorage.cs @@ -23,7 +23,6 @@ namespace GitHub.Services.Common.ClientStorage private readonly string m_filePath; private readonly VssFileStorageReader m_reader; private readonly IVssClientStorageWriter m_writer; - private const char c_defaultPathSeparator = '\\'; private const bool c_defaultIgnoreCaseInPaths = false; @@ -192,7 +191,7 @@ namespace GitHub.Services.Common.ClientStorage // Windows Impersonation is being used. // Check to see if we can find the user's local application data directory. - string subDir = "GitHub\\ActionsService"; + string subDir = Path.Combine("GitHub", "ActionsService"); string path = Environment.GetEnvironmentVariable("localappdata"); SafeGetFolderPath(Environment.SpecialFolder.LocalApplicationData); if (string.IsNullOrEmpty(path))