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; }