File.prototype.id()

Returns a file’s ID.

Syntax

file.id() string

Description

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

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

Examples

Basic example.

Documenting the current file ID format using a regular expression.