}
refineFilesystemApis() {
- let virtualPath = ['wgt-private', 'wgt-private-tmp', 'wgt-package'];
- virtualPath.forEach(name => {
- let realPath = wrt.resolveVirtualRoot(this.getServiceId(), name);
- global.tizen.filesystem.setVirtualPath?.(name, realPath, 'INTERVAL', 'MOUNTED');
- });
+ try {
+ let virtualPath = ['wgt-private', 'wgt-private-tmp', 'wgt-package'];
+ virtualPath.forEach(name => {
+ let realPath = wrt.resolveVirtualRoot(this.getServiceId(), name);
+ global.tizen.filesystem.setVirtualPath(name, realPath, 'INTERVAL', 'MOUNTED');
+ });
+ } catch (e) {
+ console.log(`refineFilesystemApis has an error ${e}`);
+ }
}
refineXwalkUtilApis() {