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
SharpZipLib nicely wraps the Directory.GetDirectories call into the FileSystemScanner class. However it is not possible to supply custom FileSystemScanners to FastZip.CreateZip. It would be helpful in this case as I could just copy that class and insert the required fixup calls. It would be necessary to create an interface around FileSystemScanner and to change to public the method
Not really a bug, more like a feature suggestion.
Steps to reproduce
FastZip.CreateZipas the GetDirectories/GetFiles return invalid data;Directory.GetDirectoriescall into theFileSystemScannerclass. However it is not possible to supply customFileSystemScanners toFastZip.CreateZip. It would be helpful in this case as I could just copy that class and insert the required fixup calls. It would be necessary to create an interface aroundFileSystemScannerand to change topublicthe methodSharpZipLib/src/ICSharpCode.SharpZipLib/Zip/FastZip.cs
Line 477 in 612969e
What do you think?
Expected behavior
FastZip.CreateZipshould offer an override to specify customFileSystemScanners.Actual behavior
FastZip.CreateZipthrows exception as the paths returned byDirectory.GetDirectoriesare not valid paths.Version of SharpZipLib
1.3.3
Obtained from (only keep the relevant lines)