HTML and CSS Reference
In-Depth Information
File API
13.0
3.6
N/A
11.1
N/A
Listing 3.12. app.jsāLoading files in the File Editor view
ferent values of the options object. The object consists of two Boolean fields. The first,
create
, determines if
getFile
should try to create a new FileEntry object
(cre-
ate:true)
or retrieve an existing FileEntry object
(create:false)
. The second
field,
exclusive
, determines if
getFile
should check for the existence of a FileEntry
object with the same file path name as
getFile
's filename argument
(exclus-
ive:true)
.
FileEntry state
options object
getFile response
FileEntry found at given file path name
create: false exclusive ignored
FileEntry is returned
create: true exclusive: true
Error is thrown
FileEntry found at given file path name, but the
FileEntry is a directory
create: false exclusive ignored
Error is thrown