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 getDirectory method.

I am using the following code:

  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); }   

returns 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.

Is anyone before this behavior? Your problem is that you try to create two directories, for example: directory1 / directory2 >

In the iOS, you should make one first, and then another.

In the iPad, the document directory does not exist.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -