-
Notifications
You must be signed in to change notification settings - Fork 17
FileManager.getFileEntry
Kerri Shotts edited this page Apr 4, 2014
·
1 revision
(part of FileManager)
Parameters:
-
path
- an absolute or relative path -
options
- an object representing thecreate
andexclusive
options
Returns: Promise, resolving to the FileEntry
ASYNCHRONOUS
Returns the FileEntry
represented by path
. The entry can be used in most methods where a path is expected.
If the file does not exist, options
can look this to create a file:
{
create: true, // or false to not create
exclusive: false // or true to fail if the file already exists when create is true
}
aFileManager.getFileEntry ( "path/to/file", {} )
.then ( function ( theFileEntry ) { ... } )
.catch ( function ( e ) { console.log ( e ); }
.done ();