Asked 4 years ago
10 Dec 2019
Views 1377
debugger

debugger posted

how to read file at Tizen with Javascript ?

i have some file in shared folder which i want to read by Web Application i made in Tizen

so i have files with xml extension and i want to read it and publish at display
jessica

jessica
answered Nov 30 '-1 00:00

tizen.filesystem.resolve will read given folder ( directory ) or files



 tizen.filesystem.resolve(
     "shared-foldername",
     function(dir) {
 dir.listFiles(onsuccess,onerror);
     }, function(e) {
       console.log("Error" + e.message);
     } 
 );


on success you can read the file list
Post Answer