Skip to content

FileManager.getDirectoryEntry

Kerri Shotts edited this page Apr 4, 2014 · 1 revision

(part of FileManager)

Parameters:

  • path - an absolute or relative path
  • options - an object representing the create and exclusive options

Returns: Promise, resolving to the DirectoryEntry

ASYNCHRONOUS

Returns the DirectoryEntry represented by path. The entry can be used in most methods where a path is expected.

If the directory does not exist, options can look this to create a directory:

{
  create: true, // or false to not create
  exclusive: false // or true to fail if the file already exists when create is true
}

Usage

aFileManager.getDirectoryEntry ( "path/to/directory", {} )
            .then ( function ( theDirectoryEntry ) { ... } )
            .catch ( function ( e ) { console.log ( e ); }
            .done ();
Clone this wiki locally