Zip file entries with backslashes does not get converted to slashes on nix platforms in FastZip.Extract

Open
#617 7 comments 0 reactions 1 assignee View on GitHub

@piksel is already working on this.

Since May 25, 2021.

Assessment

This issue has not been assessed yet.

Description

Steps to reproduce
  1. Create zip on Windows with backslash separators in paths
  2. Extract zip on Linux
    new FastZip().ExtractZip(storageZipPath, storageBaseFolder)
Expected behavior

Backslashes should be changed to slashes on Linux

Actual behavior

Backslashes extracted as part of filename

Version of SharpZipLib

1.3.0, 1.3.1

Everything works fine in 1.2.0, maybe the bug relates to #54

Dominant language
C#
Stars
3.9k
Forks
1k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from icsharpcode/SharpZipLib

All issues in icsharpcode/SharpZipLib

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.