FileProperties
The FileProperties object provides functions and attributes for interacting with a file's properties on the file system.
This object can only be created by using the blackberry.io.file.getFileProperties method.
Code Example:
|
Supported Platform(s)
| - BlackBerry OS 5.0+ |
| - BlackBerry PlayBook 1.0+ |
| - Ripple Emulator |
| API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| dateCreated | Y | Y | Y | ||||
| dateModified | Y | Y | Y | Y | Y | Y | |
| directory | Y | Y | Y | Y | Y | Y | |
| fileExtension | Y | Y | Y | Y | Y | Y | |
| isHidden | Y | Y | Y | Y | Y | Y | |
| isReadonly | Y | Y | Y | Y | |||
| mimeType | Y | Y | Y | Y | |||
| size | Y | Y | 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: |
|
You must declare the feature element(s) below in your configuration document: |
| Feature ID | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| <feature id="blackberry.io.file" /> | Y | Y | Y | Y | Y | Y |
| 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. |
Properties
| Date | dateCreated |
| Date | dateModified |
| String | directory |
| String | fileExtension |
| Boolean | isHidden |
| Boolean | isReadonly |
| String | mimeType |
| Number | size |
Properties
readonly
Date
dateCreated
File creation date
| Supported Platforms | |
|---|---|
| - BlackBerry PlayBook 1.0+ | |
| - Ripple Emulator | |
readonly
Date
dateModified
File modified date
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - Ripple Emulator | |
readonly
String
directory
Provides the directory that the file is in
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - Ripple Emulator | |
readonly
String
fileExtension
Provides the file's extension
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - Ripple Emulator | |
readonly
Boolean
isHidden
Whether or not the file is hidden
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - BlackBerry PlayBook 1.0+ | |
| - Ripple Emulator | |
readonly
Boolean
isReadonly
Whether or not the file is read-only
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - Ripple Emulator | |
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:37 GMT-0500 (EST)