02-27-2012 10:14 AM
Can you clarify what you mean?
Remember Ripple is an emulator, not a simulator / OS so it provides emulated behavior - actual integration with file system may not be available.
For example, see the File API sample we have published in Github:
Notice that when using the WebWorks-TabletOS platform, if you make a call to blackberry.io.dir.appDirs.shared.camera.path it returns file:///accounts/1000/appdata/emulatedapp/shared/c
02-27-2012 10:56 AM
02-27-2012 11:32 AM
Okay I understand, thanks for clarifying.
In this case, I'd suggest creating some sort of "isDevEnvironment()" JS method that you can use to override your /shared path with something from your own local dev folder. This will give you a source of images, that you can use to test your application.
Suggestion isDevEnvironment == domain starts with localhost ?
02-27-2012 11:36 AM
So I can actually access my local filesystem then? For example if I am on ripple, just call /Users/myname/dev/myappfolder/fakefsroot folder and look for stuff in it? That will work fine, just didn't know I could access outside the PB's emulated FS. I guess I should have tried that first.
02-27-2012 12:53 PM
Ok, so I tried your solution. But ripple doesn't seem to like URL's on my PC's filesystem.
TypeError: 'null' is not an object (evaluating 'b.children') ripple.js:353.
What am I doing wrong?