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

File.prototype.query()

Return a collection of files matching a selector.

Syntax

file.query(selector string) Collection

Parameters

selector string

Selector for matching files. See selectors for more details.

Examples

Getting all the children.

It is valid to supply a path as the selector.

It is valid to reach up in the filesystem tree.

Returns empty collection for no matches