Page 1 of 1

Creating Directory using phonegap

Posted: Mon Mar 21, 2016 7:51 pm
by Yahya

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

});


Creating Directory using phonegap

Posted: Mon Mar 21, 2016 8:13 pm
by Yahya

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

});
}


Creating Directory using phonegap

Posted: Mon Mar 21, 2016 8:29 pm
by Serhii Kulibaba

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.