-
Notifications
You must be signed in to change notification settings - Fork 17
FileManager.readDirectoryContents
Kerri Shotts edited this page Oct 26, 2013
·
1 revision
(part of FileManager)
Parameters:
-
path
- an absolute or relative path -
options
- an object representing thecreate
andexclusive
options
Returns: Promise, resolving to the contents of the directory
ASYNCHRONOUS
Returns the contents of the directory represented by path
.
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
}
aFileManager.readDirectoryContents ( ".", {} )
.then ( function ( theEntries ) { console.log (theEntries); } )
.catch ( function ( e ) { console.log ( e ); }
.done ();