I am executing the following code in a Tizen web app I'm working on
tizen.filesystem.resolve('.',
function (dir) {
dir.listFiles(
function (files) {
for (var i = 0; i < files.length; ++i)
console.log('File : ' + files[i].name + '\nURL : ' + files[i].toURI() + '\n========');
} )
},
function (err) { console.log('Error : ' + err.message); window.__error = err },
'r')
... and I am getting the following in the console
null
VM569:10 Error : The content of an object does not include valid values.
My question is , what's wrong with the code snippet above ? How am I supposed to invoke the Tizen filesystem API ?
Thanks in advance .
Above, you are trying to resolve
.
(root?) support for which is not required and probably you don't have an access to it.This also confirms my observation, from the docs:
Try to use one of the supported locations:
See an example code from API ref. site: