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
Create a ZipEntry ("somefolder\someentryname") with Windows style separator and add it to a zipfile
Try to find a zipentry with zipfile.FindEntry(@"somefolder\someentryname")
The FindEntry cannot find it.
Version 1.2.0:
In the documentation the ZipEntry constructor says: /// The convention for names is 'unix' style paths with no device names and /// path elements separated by '/' characters. This is not enforced see <see cref="CleanName(string)">CleanName</see> /// on how to ensure names are valid if this is desired.
In the version 0.86.0 the ZipEntry documentation says the unix style separator is not enforced and indeed it is not enforced. See (line 254): name = entry.name;
It's a breaking change from 0.86.0 to 1.2.0 (It's present in 1.0.0 aswell). We, unfortunately, used the FindEntry with Windows "\" separator and worked, however, it broke upon upgrading to newer versions.
The text was updated successfully, but these errors were encountered:
Thanks for linking the commit. I'm still confused about why this change was made in the first place. It seems to just break use cases, but I presume it was solve a specific one?
Not sure what the current situation is with slashes in ZipOutputStream, but I think there have been other attempts to fix the delete issues in ZipFile?
Steps to reproduce
Version 1.2.0:
In the documentation the ZipEntry constructor says:
/// The convention for names is 'unix' style paths with no device names and /// path elements separated by '/' characters. This is not enforced see <see cref="CleanName(string)">CleanName</see> /// on how to ensure names are valid if this is desired.
However it's enforced (line 214):
this.name = CleanName(name);
Version 0.86.0:
In the version 0.86.0 the ZipEntry documentation says the unix style separator is not enforced and indeed it is not enforced. See (line 254):
name = entry.name;
Commit of the change:
af0ee8d
Version of SharpZipLib
1.2.0 and 0.86.0
Obtained from
It's a breaking change from 0.86.0 to 1.2.0 (It's present in 1.0.0 aswell). We, unfortunately, used the FindEntry with Windows "\" separator and worked, however, it broke upon upgrading to newer versions.
The text was updated successfully, but these errors were encountered: