Skip to content

ZipArchive.GetEntry does not work with Path.Join (backslashes) #1553

@jnm2

Description

@jnm2

GetEntry currently looks for the path in a dictionary of strings. The strings in the dictionary have forward slashes, so if you pass a path with a backslash, no entry can match.

I'd expect this to be normalized so that Path.Join can be used to build paths.

https://github.com/dotnet/corefx/blob/f37461280a3c843000aa79642ba700baa5a1fc30/src/System.IO.Compression/src/System/IO/Compression/ZipArchive.cs#L244-L256

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions