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

File.prototype.contains()

Reports if file is an ancestor of another file.

Syntax

file.contains(f2 File) boolean

Report if file is an ancestor of f2.

Parameters

f2 File

File to check if it is contained by file.

Description

Returns true if file is an ancestor of the other file, false otherwise.

Examples

Basic example.

Subscribe to our newsletter!