I had a piece of code working with Cordova 2.7. I upgraded my app to Cordova 3.3 along with updating all the custom plugins that I developed.
I was able to successfully get the full absolute path in the Documents directory on iOS with Cordova 2.7, but with Cordova 3.3 it just returns / for fullPath
Here is my code:
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); function gotFS(fileSystem) { alert("entered gotFS: " + fileSystem.root.fullPath); }
I tested this on iPad Simulator 7.0 (which gave the correct results with Cordova 2.7)
Although, I can get the path with other methods, I would prefer to use the Cordova API.
The API documentation says nothing about this. Any idea what could be wrong?
source share