If mode is not given by application, undefined 'mode' value throws
exception in tizen.filesystem.resolve() due to type mismatching.
According to its default file mode, this patch set it 'rw'
in file_system_manager.js
function resolve() {
...
if (!args.has.mode) {
args.mode = 'rw';
Change-Id: I18b44c61c53c1683438a65e88f1ebde50263288a
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
console.log(`Routing - resolve(${location})`);
let service_id = this.GetServiceId();
location = wrt.resolveVirtualRoot(service_id, location);
- this.funcPathResolve(location, onSuccess, onError, mode);
+ this.funcPathResolve(location, onSuccess, onError, mode ?? 'rw');
}
}
}
\ No newline at end of file