Yahya
Posts: 0
Joined: Tue Nov 11, 2014 1:08 pm

Creating Directory using phonegap

Good day,

Below is my function I call from screen device ready to create folder in the root and but files in array if any, it works fine when using appery test app, but when create APK and install to device it dose not create any folder, your advise Please.

function RefreshFiles(){
allfiles=[];
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) {
fileSystem.root.getDirectory("quranAyat", {
create: true
}, function(directory) {

Code: Select all

     var directoryReader = directory.createReader(); 
     directoryReader.readEntries(function(entries) {  
         var fname; 
         if(entries.length==0){ 
             //toast('مجلد الملفات فارغ'); 
            allfiles=[]; 
            return false; 
         } 
         for (var i=0; i + error.code); 

});

Yahya
Posts: 0
Joined: Tue Nov 11, 2014 1:08 pm

Creating Directory using phonegap

Sorray the function again..

function RefreshFiles(){
allfiles=[];
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) {
fileSystem.root.getDirectory("quranAyat", {
create: true, exclusive: false
}, function(directory) {

Code: Select all

     var directoryReader = directory.createReader(); 
     directoryReader.readEntries(function(entries) {  
         var fname; 
         if(entries.length==0){ 
             //toast('مجلد الملفات فارغ'); 
            allfiles=[]; 
            return false; 
         } 
         for (var i=0; i + error.code); 

});
}

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Creating Directory using phonegap

Hello,

We are very sorry, but this is something outside the scope (http://devcenter.appery.io/support-po...) of our standard support.
Please search online for appropriate solution.

Return to “Issues”