12-16-2012 02:44 PM - edited 12-16-2012 02:55 PM
Is there any way to get a list of directories and files from a directory inside my app?(in BB10)
E.g to get a a list of directory names from "local:///photos" (or "file://photos"), the reason I want to do this is because I want to have a big list of files and directories inside a directory embeded in my app, but I don't want to mantain an internal list of references to them.
I tried using a directory reader + unsandboxed filesystem but I can't seem to find the directory where the app is( I initially supposed is blackberry.io.home)
12-17-2012 10:27 AM
I think you may want this (https://developer.blackberry.com/html5/apis/blackb
12-17-2012 10:50 AM
I've tried that example yesterday, but I couldn't manage to get it work in a sandboxed enviroment. It seems I need to put sandbox to false even to read .home directory, in the docs it says only for .sharedFolder you need to unsandbox the enviroment.
Anyway how to read from the .sharedFolder the contents embeded in my app, the files and directory structure packaged with my app?
PS: If you haven't seen this post yet, please take a look: http://supportforums.blackberry.com/t5/Web-and-Web
12-17-2012 10:59 AM
12-17-2012 11:14 AM
I also know that
But I can't read the contents of a directory within my app, programatically. I want to be able to add files and folders within my app without mantaining a reference to them within my app and without predefined names. My question is how can I read the virtual folder "local://' using the APIs?