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
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
FileEntry.file             
fullPath       Y Y YY
lastModifiedDate       Y Y YY
name       Y Y YY
size       Y Y YY
type       Y Y YY

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 Mon Feb 11 2013 14:51:06 GMT-0500 (EST)