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

File.prototype.id()

Returns a file’s FileId.

Syntax

file.id() string

Description

Returns a file’s FileId, which is a unique identifier that doesn’t change when a file is moved within a volume.

Note: the format of the FileId may change in the future, see the filesystem specification for more details.

Examples

Example FileId on root volume.

Example FileId on nested volume.