ZipNameTransform.IsValidName Method (String)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipNameTransform.IsValidName Method (String)

Test a name to see if it is a valid name for a zip entry.

public static bool IsValidName(
   string name
);

Parameters

name
The name to test.

Return Value

Returns true if the name is a valid zip name; false otherwise.

Remarks

Zip path names are actually in unix format, and should only contain relative paths if a path is present. This means that the path stored should not contain a drive or device letter, or a leading slash. All slashes should forward slashes '/'. An empty name is valid where the input comes from standard input. A null name is not considered valid.

See Also

ZipNameTransform Class | ICSharpCode.SharpZipLib.Zip Namespace | ZipNameTransform.IsValidName Overload List