CleanName Method

SharpZip Compression Library

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

Overload List

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);

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,bool);

See Also

ZipEntry Class | ICSharpCode.SharpZipLib.Zip Namespace