07-23-2012 02:40 PM
I don't believe this is possible. The blackberry.io.dir.createDirectory() method only allows you to specify the path.
Digging into the code here:
C:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS 126.96.36.199\bbwp\ext\blackberry.io.dir\src\Air\Directo
I see its simply calling into the createMethod from the flash.filesystem.File object, which is documented here:
07-23-2012 04:27 PM
The questions is, why hiding a folder and for whom? If you want to hide the folder to not beeing accessable try to add the folder in the applications app-directory. I think with the PlayBook APIs you can not access the folders of another app, isn't it or may I be wrong in this?
07-23-2012 06:50 PM - edited 07-23-2012 06:54 PM
A reason I can think of off the top of my head to create a hidden folder would be to prevent images within it to show up in the files application.
I think Sacha did it in one of his betas of http://appworld.blackberry.com/webstore/content/10
Can you not just put a . in the folder name when you create it?
07-23-2012 09:45 PM
Thanks your response.
I want to create a hide folder which save image
Because I want to avoid the case which everyone use my playbook and delete my image.
See your respone so we have other way to protect our folder!!
07-24-2012 05:26 AM
Put your stuff in the location returned by blackberry.io.dir.appDirs. That's the folder only accessible by your app.
That should protect it from people sniffing around.
Also put a basic password on your PlayBook to prevent that.