File.prototype.chainSelect()

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

Syntax

file.chainSelect(selector string) File file.chainSelect(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: 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.