File.prototype.contains()

Reports if file is an anchestor of another file.

Syntax

file.contains(f2 File) boolean

Report if file is an anchestor of f2.

Parameters

f2 File

File to check if it is contained by file.

Description

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

Examples

Basic example.