private static SimplifyFwdSlashPath ( string path ) : string | ||
path | string | |
Résultat | string |
// Token: 0x0600033D RID: 829 RVA: 0x000180EC File Offset: 0x000162EC public static string NormalizePathForUseInZipFile(string pathName) { if (string.IsNullOrEmpty(pathName)) { return(pathName); } if (pathName.Length >= 2 && pathName[1] == ':' && pathName[2] == '\\') { pathName = pathName.Substring(3); } pathName = pathName.Replace('\\', '/'); while (pathName.StartsWith("/")) { pathName = pathName.Substring(1); } return(SharedUtilities.SimplifyFwdSlashPath(pathName)); }