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


Search the type chain for the first file specified by path.


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


selector string

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


Basic example: selecting file by absolute path.

Selecting by relative path.

Finding along the type chain.

Returns null if there is no match.

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