HTML5 File
File objects provides functionatlity to be able to read, write and navigate file system hierarchies
Supported Platform(s)
| - BlackBerry PlayBook 1.0+ |
| - BlackBerry 10 |
| - Ripple Emulator |
| API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| FileEntry.file | |||||||
| fullPath | Y | Y | Y | Y | |||
| lastModifiedDate | Y | Y | Y | Y | |||
| name | Y | Y | Y | Y | |||
| size | Y | Y | Y | Y | |||
| type | Y | Y | Y | Y |
Configuration Document Settings
|
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
| This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
| Permission Elements (PlayBook and BlackBerry 10+) |
|---|
| This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Constructors
Constructors
FileEntry.file
(successCallBack : function, errorCallBack : function)
returns the file object associated to the fileEntry
| Supported Platforms |
|---|
| Parameters | |
|---|---|
| successCallBack |
function to be executed when successful
File: The new File object |
| errorCallBack |
function to be executed when an error is encountered
FileError: Invoked with a FileError object |
Properties
File
fullPath
The full path of the file including the file name
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
File
lastModifiedDate
lists the date that it was last modified
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
File
name
The name of the file
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
File
size
size of file in bytes
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
File
type
The mime type of the file
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - BlackBerry 10 | |
| - Ripple Emulator | |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:37 GMT-0500 (EST)