ZipEntry.CleanName Method

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipEntry.CleanName Method 

Cleans a name making it conform to Zip file conventions. Devices names ('c:\') and UNC share names ('\\server\share') are removed and forward slashes ('\') are converted to back slashes ('/'). Names are made relative by trimming leading slashes which is compatible with the ZIP naming convention.

public static string CleanName(
   string name
);

Parameters

name
Name to clean

See Also

ZipEntry Class | ICSharpCode.SharpZipLib.Zip Namespace