dotnet / dotnet/dotnet-api-docs

Handling of Path Separator inside the Zip

Open
#1,780 1 comment 3 reactions 0 assignees View on GitHub
area-System.IO dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I believe as of .NET Full Framework 4.6.1, the default separator character for the relative paths inside of a ZipArchive is the "/" and NOT the "\\". This change in behavior can be configured back to the old way by a config setting inside of the <runtime> tag. For .NET Core I am assuming that "/" is also used by default and I am not aware if there is a way to control this behavior. In any case, this documentation should either update the "Remarks" section to show "AddedFolder/NewEntry.txt" instead of "AddedFolder\\\\NewEntry.txt" or even better, call out explicitly that front slash is used by default and if there is any way to control this behavior.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 1a916497-b778-eed7-973a-fcb8aba320f0
* Version Independent ID: 7738ffe1-efd9-af97-7f78-95d88f45cda5
* Content: [ZipArchiveEntry.FullName Property (System.IO.Compression)](https://docs.microsoft.com/en-us/dotnet/api/system.io.compression.ziparchiveentry.fullname?view=netcore-2.2#System_IO_Compression_ZipArchiveEntry_FullName)
* Content Source: [xml/System.IO.Compression/ZipArchiveEntry.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.IO.Compression/ZipArchiveEntry.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.