[FileSystem] Fix issue about destination path in copyTo() method. 98/70898/1
authorPiotr Kosko <p.kosko@samsung.com>
Thu, 27 Aug 2015 09:47:18 +0000 (18:47 +0900)
committerbg.chun <bg.chun@samsung.com>
Mon, 23 May 2016 07:46:21 +0000 (16:46 +0900)
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 <p.kosko@samsung.com>
src/filesystem/js/file.js

index a64539a30bd5a5587ead3971f26bf62426728828..973b3c0c577c92151f1b8bec36775dfd933924e4 100644 (file)
@@ -436,7 +436,7 @@ function copyTo() {
   }
 
   if (_oldNode.isFile && addFileName) {
-    _realDestinationPath += '/' + _realOriginalPath.split('/').pop();
+    _realDestinationPath += _realOriginalPath.split('/').pop();
   }
 
   if (!args.overwrite) {