From: Tomasz Marciniak Date: Thu, 17 Sep 2015 11:26:18 +0000 (+0200) Subject: [Filesystem] URI without prefix 'file://' are handled now. X-Git-Tag: submit/tizen/20151026.073646^2^2~99 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0d0f84d0a10f5773d59e7c55ddce12f65bf374b;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Filesystem] URI without prefix 'file://' are handled now. [Verification] Code compiles. One TCT test is failed. FileSystemManager_resolve_error_invoked is incorrect. Change-Id: I204814828962d6e1f5b015f2fd5b4fd7f02ca55f Signed-off-by: Tomasz Marciniak --- diff --git a/src/filesystem/js/file_system_manager.js b/src/filesystem/js/file_system_manager.js index 6f24d906..b1f14cc6 100755 --- a/src/filesystem/js/file_system_manager.js +++ b/src/filesystem/js/file_system_manager.js @@ -44,15 +44,6 @@ FileSystemManager.prototype.resolve = function(location, onsuccess, onerror, mod args.mode = 'rw'; } - if (args.location[0] === '/') { - setTimeout(function() { - native_.callIfPossible(args.onerror, - new WebAPIException(WebAPIException.NOT_FOUND_ERR, - 'Global path without \'file://\' prefix is not valid.')); - }, 0); - return; - } - // resolving a path on unmounted storage should result in exception var storage = commonFS_.getStorage(args.location.split('/')[0]); if (storage && FileSystemStorageState.MOUNTED !== storage.state) {