From e53da31adaed21be1b51bda714622286279dd8b3 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Thu, 2 Nov 2023 20:28:58 +0100 Subject: [PATCH] fix issues for not windows system --- clio/Common/CompressionUtilities.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/clio/Common/CompressionUtilities.cs b/clio/Common/CompressionUtilities.cs index 47922b88..52b9ce0c 100644 --- a/clio/Common/CompressionUtilities.cs +++ b/clio/Common/CompressionUtilities.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.IO.Compression; +using System.Runtime.InteropServices; using System.Text; namespace Clio.Common @@ -75,11 +76,7 @@ private string ReadFileRelativePath(MemoryStream zipStream) sb.Append(character); } string filePath = sb.ToString(); -#if NETSTANDARD - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { - filePath = filePath.Replace("\\", "/"); - } -#endif + filePath = filePath.Replace('\\', Path.DirectorySeparatorChar); return filePath; }