언어 설정

Menu
Sites
Language
Get File without opening directory

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

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 댓글
konduri sai swathi
Hi Maksym, You already have the file path so there is no need to use filesytem.resolve(). You can directly use the file by specifying the path you mentioned.
Maksym
Found the issue. There is also prefix "file://" should be added to the file path. Which is confusing, assuming that I use absolute path, moreover launch application control returns file path without this prefix