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

File.prototype.hidden()

Reports whether a file is hidden.

Syntax

file.hidden() boolean

Description

Returns true if a file is hidden, false otherwise. A file is hidden if its name starts with a dot (.).

Examples

Example of not hidden file.

Example of hidden file.