@AppKu/Fairu

@AppKu/Fairu

v1.0.6

Class

PathState

This class stores flags about the state of a path (file or directory or other...) when being evaluated by Fairu.

Constructor

new PathState(targetPath)

Creates a new PathState instance.

Parameters

  • targetPath String

    The file-system path being represented.

Source

Members

errorError

The last error that occurred during the Fairu operation.

Type

  • Error

Source

operationString

The Fairu operation in action, can be: "read", "write", "append", "touch", or "unlink".

Type

  • String

Source

readableBoolean

Indicates the file or directory appears to be readable.

Type

  • Boolean

Source

writableBoolean

Indicates the file or directory appears to be writable.

Type

  • Boolean

Source