1 using System.Diagnostics;
3 namespace System.IO.Compression
5 public partial class ZipArchiveEntry
7 internal static readonly ZipVersionMadeByPlatform CurrentZipPlatform = Path.PathSeparator == '/' ?
8 ZipVersionMadeByPlatform.Unix : ZipVersionMadeByPlatform.Windows;
10 internal static string ParseFileName(string path, ZipVersionMadeByPlatform madeByPlatform)
12 switch (madeByPlatform) {
13 case ZipVersionMadeByPlatform.Windows:
14 return GetFileName_Windows(path);
15 case ZipVersionMadeByPlatform.Unix:
16 return GetFileName_Unix(path);
18 return ParseFileName (path, CurrentZipPlatform);