In the documentation File object directories are listed as shown below:

Alias Path

File.applicationDirectory (appname)/app/air
File.applicationStorageDirectory (appname)/data
File.desktopDirectory (appname)/
File.documentsDirectory (appname)/shared/documents
File.userDirectory (appname)/shared/documents

 

Now, that is not entirely correct. It is probably cause some changes made in BlackBerry PlayBook Tables OS. When accessing desktopDirectory, you are actually accessing folder appname/shared/documents.

The right table would actually look like this.

Alias Path
File.applicationDirectory /accounts/1000/appdata/(appdir)/app/air
File.applicationStorageDirectory /accounts/1000/appdata/(appdir)/data
File.desktopDirectory /accounts/1000/appdata/(appdir)/shared/documents
File.documentsDirectory /accounts/1000/appdata/(appdir)/shared/documents
File.userDirectory /accounts/1000/appdata/(appdir)

Note it is still same directories but they just have accounts/1000/appdata added.

 

This is tho not all of it. Just like for Android, you need to grant some permissions. So, when compiling a .BAR file you need a blackberry-tablet.xml file which contains these permissions.

To access file-storage you simply add action-tag inside <qnx> tags.

<action>access_shared</action>

 

Appdata is the application private area where it works. Everything is saved in that directory but you will get nice public access to shared folder, since everything in this folder is shared across applications.

So if you want private storage, where no other application is able to access files from your app, you should use File.applicationStorageDirectory.