Test a name to see if it is a valid name for a zip entry.
Parameters
- name
- The name to test.
- relaxed
- If true checking is relaxed about windows file names and absolute paths.
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. This means that any path stored should not contain a drive or device letter, or a leading slash. All slashes should forward slashes '/'. An empty name is valid for a file 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