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