Adding FileError.SECURITY_ERROR to errorCallbacks.
The change is needed because of file access checking, which is implemented
in Tizen 5.0
Change-Id: Ic2a40fd4c92ed045e506344443ee295d1527d56f
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
case 'IOError':
return FileError.INVALID_MODIFICATION_ERR;
+ case 'SecurityError':
+ return FileError.SECURITY_ERR;
+
default:
return FileError.ENCODING_ERR;
}
errorCallback && errorCallback(convertTizenFileError(error));
}
- tizen.filesystem.resolve(path, onResolve, onError, 'r');
+ try {
+ tizen.filesystem.resolve(path, onResolve, onError, 'r');
+ } catch (e) {
+ onError(e);
+ }
},
_getLocalFilesystemPath: function(successCallback, errorCallback, args) {
var path = rootUtils.internalUrlToNativePath(args[0]);