@@ -9,7 +9,7 @@ namespace System.IO.Compression
9
9
public static class ZipFile
10
10
{
11
11
// Per the .ZIP File Format Specification 4.4.17.1 all slashes should be forward slashes
12
- private const char c_pathSeparator = '/' ;
12
+ private const char PathSeparator = '/' ;
13
13
14
14
/// <summary>
15
15
/// Opens a <code>ZipArchive</code> on the specified path for reading. The specified file is opened with <code>FileMode.Open</code>.
@@ -521,14 +521,14 @@ private static void DoCreateFromDirectory(String sourceDirectoryName, String des
521
521
{
522
522
// FullName never returns a directory separator character on the end,
523
523
// but Zip archives require it to specify an explicit directory:
524
- archive . CreateEntry ( entryName + c_pathSeparator ) ;
524
+ archive . CreateEntry ( entryName + PathSeparator ) ;
525
525
}
526
526
}
527
527
} // foreach
528
528
529
529
// If no entries create an empty root directory entry:
530
530
if ( includeBaseDirectory && directoryIsEmpty )
531
- archive . CreateEntry ( EntryFromPath ( di . Name , 0 , di . Name . Length ) + c_pathSeparator ) ;
531
+ archive . CreateEntry ( EntryFromPath ( di . Name , 0 , di . Name . Length ) + PathSeparator ) ;
532
532
533
533
} // using
534
534
} // DoCreateFromDirectory
@@ -560,7 +560,7 @@ private static string EntryFromPath(string entry, int offset, int length)
560
560
for ( int i = 0 ; i < chars . Length ; i ++ )
561
561
{
562
562
if ( chars [ i ] == Path . DirectorySeparatorChar || chars [ i ] == Path . AltDirectorySeparatorChar )
563
- chars [ i ] = c_pathSeparator ;
563
+ chars [ i ] = PathSeparator ;
564
564
}
565
565
566
566
return new string ( chars ) ;
0 commit comments