Click or drag to resize

SHA1OpenNURBSFileSystemPathHash Method

Computes the SHA1 hash of a file system path, converted to UTF8.

These file system paths have identical values of FileSystemPathHash():

/x/y/z/name.ext

\x\y\z\name.ext

/x//y//z/name.ext

/x/y/a/b/c/../../../z/name.ext

/X/Y/Z/NAME.EXT (When ignoreCase is true)

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static byte[] FileSystemPathHash(
	string path,
	Nullable<bool> ignoreCase = null
)

Parameters

path
Type: SystemString
A non-null path string.
ignoreCase (Optional)
Type: SystemNullableBoolean
If case should be ignored. If this is null or unspecified, the operating system default is used.

Return Value

Type: Byte
A 20-byte long SHA1 hash.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen input is null.
Version Information

Rhino for Windows

Supported in: 6.6
See Also