Skip to content

Commit

Permalink
fix issues for not windows system
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-nikonov committed Nov 2, 2023
1 parent 1751432 commit e53da31
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions clio/Common/CompressionUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit e53da31

Please sign in to comment.