ios - Cordova getDirectory returns errorcode -
I'm trying to access the file system in Cordova iOS app, but it always returns error code 3 (ABORT_ERR) When I use the I am using the following code: returns Is anyone before this behavior? Your problem is that you try to create two directories, for example: In the iOS, you should make one first, and then another. In the iPad, the getDirectory method.
window.requestFileSystem (LocalFileSystem.PERSISTENT, 0, onFileSystemSuccess, failed); Function file system civet (file system) {console.log (fileSystem.name); DataDir = fileSystem.root.getDirectory ("Ozzy", {made: true}, getDir, unsuccessful); } Getdir function (dir) {console.log ("successful link directory", dir); } Unsuccessful (error) {console.log ("error", error.code); }
fileSystem.name ("continuous") to me, but this directory never gets, it always returns error.code = 3, which That is ABORT_ERR according to the PhoneGap documentation.
directory1 / directory2 >
document directory does not exist.
Comments
Post a Comment