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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -