From: Tomasz Marciniak Date: Fri, 27 May 2016 12:39:32 +0000 (+0200) Subject: [FileSystem] Remove code for cutting last '/' X-Git-Tag: submit/tizen/20160530.025304~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F13%2F71913%2F2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [FileSystem] Remove code for cutting last '/' [Verification] Code compiles. FileSystem tct pass rate 100% Security tct related to paths pass. Change-Id: Ib1b90f6224e9909f9d1f4206b72fde08b88d3767 Signed-off-by: Tomasz Marciniak --- diff --git a/src/filesystem/js/common.js b/src/filesystem/js/common.js index 9e99384a..15cc6973 100644 --- a/src/filesystem/js/common.js +++ b/src/filesystem/js/common.js @@ -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; }