1. missing_K-W's Avatar
    04-06-11 07:09 PM
  2. wms3's Avatar
    i wonder if you will be able to add folders the way i can on my Torch?
    04-06-11 07:14 PM
  3. mandony's Avatar
    The BB supplemental article seems to say, only an APP can make a new directory in the sandbox. You must, however, be able to locate your file called 'War and peace or how I got divorced after buying a playbook" in the downloaded books section.
    It seems the user can define: File.documentsDirectory (appname)/shared/.... documents or whatever under the APP that the data was derived. For example you put all your videos in a video directory like: you-tube-vids/shared/video123 ....

    Here is an overview of the BlackBerry� PlayBook™ application sandbox file system layout for the latest release 0.9.2
    Applications will be run in the directory we call "sandbox". Name of this directory is irrelevant and cannot be relied on. An application should not attempt to access any files outside of this directory. Sandbox is the default "working directory".

    The structure is
    app
    data
    tmp
    logs
    shared


    All except shared are app's private directories, only the app can read/write files there.
    The "app" directory is the link to where application files are installed (what was packaged in the bar file), these files are read only. For Adobe� AIR�, application files will be in subdirectory "air" (i.e. app/air/your_file). The private data directory is "data". Application has full access to this directory (read/write). The $HOME env var is set to this directory. To initiate the sandbox app may copy files from "app" to "data" (for example user modifiable config files) on the first run. The "tmp" directory can be used to create temporary files, application should take care of cleaning these files, but system may remove them at any time app is not running - so it cannot be used to persist data, only "data" directory should be used for this. The "logs" is used for development, application stdin and stdout is redirected to logs/log file, as well as "core" files will be created there if app crashes.

    The "shared" is link to common location where all apps share files. It has the following structure:
    photos
    bookmarks
    misc
    books
    documents
    voice
    downloads
    music
    videos


    These directories map to the File class as:
    Alias Path
    File.applicationDirectory (appname)/app/air
    File.applicationStorageDirectory (appname)/data
    File.desktopDirectory (appname)/
    File.documentsDirectory (appname)/shared/documents
    File.userDirectory (appname)/shared/documents
    Last edited by mandony; 04-06-11 at 07:37 PM.
    04-06-11 07:25 PM
  4. peter9477's Avatar
    i wonder if you will be able to add folders the way i can on my Torch?
    See the thread Does the PB allow users to set up folders?, especially my answer there. (Note: I wrote part of the article Missing_KW linked to at the top of this thread, so you can trust that my answer accurately reports how the simulator works, though there's always the chance the final release acts a bit differently.)
    04-06-11 07:36 PM
  5. flyersfan76's Avatar
    I haven't had a chance to read all the information but I was hoping for a folder layout similar to this:

    Personal
    - Documents
    - Pictures
    - Videos
    Business
    - Documents
    - Pictures
    - Videos
    Home
    - Owners Manuals


    OR

    Documents
    Personal
    Business
    Pictures
    Personal
    Business
    Videos
    Personal
    Business


    Of course it depends on how RIM set it up but I would hate to have an Tank layout installation video for work right next to the movie Slap Shot because it makes sense alphabetically.

    And this thread is perfect. I actually just asked this question on the main page under the unanswered questions post. Well that and of course the unanswered question we all want to know which is will forum posters learn how to use search instead of creating yet another Staples thread.
    04-06-11 09:30 PM
LINK TO POST COPIED TO CLIPBOARD