Get File without opening directory

Get File without opening directory

BY 12 Sep 2013 Web Application Development

What is the way to get File without opening directory if I have absolute path?

 
filePath = “/opt/usr/media/Images/Default.jpg”;

tizen.filesystem.resolve(filePath, function(file) {
console.log(‘filePath = [‘ + filePath + ‘]’);
console.dir(file);
}, function(arg) {
//Always get this callback with error “location not found”
console.error(arg);
}, ‘r’);
 

Written by