hello guys,
i trying to copy a file from my app directory to public images directory on gear s2 web app. anyone can help me how i can do it ?
this is my code and tizen can not find "myapp/1.png".
var documentsDir;
documentsDir.copyTo("myapp/1.png","documents/1.png",false,function() {console.log("file copied");});
tizen.filesystem.resolve('documents',function(dir) {
documentsDir = dir;
dir.listFiles(onsuccess, onerror);
}, function(e) {
console.log("Error" + e.message);
}, "rw"
);