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

File.prototype.attrSize()

Return the size of the file’s attributes.

Syntax

file.attrSize() uint64

Description

Return the size of the file’s attributes as stored on disk. Links are not followed.

Note: the way file attributes are serialized (stored on disk) may change in the future, so may the attrSize. The only guarantees are that when a file has no attributes its attrSize will be 0; and that attrSize will be deterministic within a single transaction.

Examples

A file with no attributes has an attrSize of 0.

A file with attributes has non-zero attrSize.