You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dumping the switch statement in favour of this ought to fix it:
if (Path.DirectorySeparatorChar == '/')
{
return path.Replace('\\', '/');
}
else if (Path.DirectorySeparatorChar == '\\')
{
return path.Replace('/', '\\');
}
RAR always wants a \ as it's path separator.
Note:
Haven't tested this on create, hence why I'm not running up a pull request, but I don't see any reason for it to fail.
I'll look into this soon. I was thinking archive formats want something specific and SharpCompress will have to adjust it one top of the formats like you're saying.
Hi,
When I run the following code the directory seperator in the IArchiveEntry.Key is different for different archive types.
Output for a .rar file:
output for a .zip file
Is this by design or a bug? Both archives are created on the same computer.
The text was updated successfully, but these errors were encountered: