[FileSystem] Remove code for cutting last '/' 13/71913/2
authorTomasz Marciniak <t.marciniak@samsung.com>
Fri, 27 May 2016 12:39:32 +0000 (14:39 +0200)
committerHyunjin Park <hj.na.park@samsung.com>
Mon, 30 May 2016 02:02:14 +0000 (19:02 -0700)
[Verification] Code compiles.
FileSystem tct pass rate 100%
Security tct related to paths pass.

Change-Id: Ib1b90f6224e9909f9d1f4206b72fde08b88d3767
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/filesystem/js/common.js

index 9e99384a3a9d07fad431b8e20d8d8bf1f666dad0..15cc697305cb28a8e27a69d7a82ecd41090b53af 100644 (file)
@@ -240,10 +240,6 @@ var commonFS_ = (function() {
     // if path is valid try to cut last '/' if it is present
     if (_fileRealPath) {
       _fileRealPath = mergeMultipleSlashes(_fileRealPath);
-      var lastCharIndex = _fileRealPath.length-1;
-      if (_fileRealPath[lastCharIndex] === '/') {
-        _fileRealPath = _fileRealPath.substr(0,lastCharIndex);
-      }
     }
     return _fileRealPath;
   }