ZipEntry.CleanName Method (String)

SharpZip Compression Library

SharpZip Compression Library

ZipEntry.CleanName Method (String)

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 Windows-XPs built in Zip file handling.

public static string CleanName(
   string name
);

Parameters

name
Name to clean

See Also

ZipEntry Class | ICSharpCode.SharpZipLib.Zip Namespace | ZipEntry.CleanName Overload List