From: Piotr Kosko Date: Thu, 27 Aug 2015 09:47:18 +0000 (+0900) Subject: [FileSystem] Fix issue about destination path in copyTo() method. X-Git-Tag: submit/tizen/20160524.021316~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e12129eaf89e6d12072e655526776446cbdbe4d5;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [FileSystem] Fix issue about destination path in copyTo() method. cherry-pick from tizen_2.4_tv_product_migration branch. Issue : copyTo() method returns error, when the destination path is virtual path without '/' Change-Id: Ibb87064acccada243bff85298401a6639c1b44c6 Signed-off-by: Piotr Kosko --- diff --git a/src/filesystem/js/file.js b/src/filesystem/js/file.js index a64539a3..973b3c0c 100644 --- a/src/filesystem/js/file.js +++ b/src/filesystem/js/file.js @@ -436,7 +436,7 @@ function copyTo() { } if (_oldNode.isFile && addFileName) { - _realDestinationPath += '/' + _realOriginalPath.split('/').pop(); + _realDestinationPath += _realOriginalPath.split('/').pop(); } if (!args.overwrite) {