-
Notifications
You must be signed in to change notification settings - Fork 17
FileManager.getFile
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 File
object specified by the path
ASYNCHRONOUS
Returns an associated File
object represented by path
. This is not the same as a FileEntry
.
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.getFile ( "path/to/file", {} )
.then ( function ( theFile ) { ... } )
.catch ( function ( e ) { console.log ( e ); }
.done ();