Fixes: UTC_filesystem_resolve_invalid_pram_location_N_003
[Verification] [Verification] Wearable service UTC: 94/94
Mobile TCT: 289/289
Change-Id: I16f8e450eefbc6389591c3e08b1d1b478f65faa1
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
}
var _realPath = commonFS_.toRealPath(args.location);
+
+ if (!_realPath) {
+ // invalid real path means that virtual root does not exist
+ setTimeout(function() {
+ native_.callIfPossible(args.onerror,
+ new WebAPIException(WebAPIException.NOT_FOUND_ERR,
+ 'Specified virtual root does not exist.'));
+ }, 0);
+ return;
+ }
+
var _isLocationAllowed = commonFS_.isLocationAllowed(_realPath);
if (args.mode !== 'r' && !_isLocationAllowed) {