FileError {code: 5} trying to use absolute file paths with Meteor 1.4 Cordova


#1

I can’t read anything other than private files (via relative paths) when running my simple app on Android. I’ve scoured the Meteor Guide (awesome, btw!) But just can’t get to files on external storage (/sdcard). Any ideas?

Full details here: http://stackoverflow.com/questions/38800845/fileerror-code-5-trying-to-use-absolute-file-paths-with-meteor-1-4-cordova


#2

Got it! Answer, source code.

The trick was to use the window.resolveLocalFileSystemURL API.