ZipEntry.CleanName Method (String, Boolean)

SharpZip Compression Library

SharpZip Compression Library

ZipEntry.CleanName Method (String, Boolean)

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 ('/').

public static string CleanName(
   string name,
   bool relativePath
);

Parameters

name
Name to clean
relativePath
Make names relative if true or absolute if false

See Also

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