WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

File.prototype.attrHash()

Return the hash of the file’s attributes.

Syntax

file.attrHash() string

Description

Return a hash of the file’s attributes, which is a fingerprint of it. When two files have the same attrHash, it is guaranteed that they have the same attributes (keys, values and types).

Note that the format of the attrHash is not fixed. The only guarantee is that it is a HEX string no longer than 256 bytes (in HEX form).

Examples

An example attrHash.