Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Folder

Hierarchy

  • Folder

Index

Constructors

Methods

Constructors

constructor

  • References a folder. The folder does not have to exist.

    Example 1: Get a reference to an existing folder

    var myFolder = new Folder( 'PROJECT' );
    console.log( myFolder.exists );
    // true

    Example 2: Get a reference to a missing folder

    var myFolder = new Folder( 'PROJECT/missing-folder' );
    console.log( myFolder.exists );
    // false

    Parameters

    • path: String

      Absolute path of the folder to reference.

    Returns WAKFolderInstance

Methods

isFolder

  • isFolder(path: String): Boolean
  • Check if the path references a folder.

    var myIsFolder = Folder.isFolder( 'PROJECT' );
    console.log( myIsFolder );
    // true

    Parameters

    • path: String

      Absolute path to a folder

    Returns Boolean

    true is the path references a folder, false otherwise.