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

File.prototype.select()

Return a file specified by its path.

Syntax

file.select(selector string) File file.select(selector string) null

Parameters

selector string

A path and any filters. Selectors that may match multiple files, like the child selector, are invalid. See Selectors for more details.

Examples

Basic example.

Returns null if there is no match.

It is invalid to use selectors that may match multiple files.