[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>
// 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;
}