[File] Make sure that File.fullPath always starts with '/'.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 21 Dec 2015 14:12:04 +0000 (15:12 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 21 Dec 2015 14:12:04 +0000 (15:12 +0100)
[Verification] 140 specs, 0 failures, 1 pending spec. All manual tests pass.

Change-Id: I0bc3754d5a5994977100b7796140df5fd8315576
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/file/js/rootsUtils.js

index ef273b1..e673da5 100644 (file)
@@ -34,6 +34,9 @@ var rootsUtils = (function() {
     if (!tmp) {
       tmp = '/';
     }
+    if ('/' !== tmp[0]) {
+      tmp = '/' + tmp;
+    }
     return tmp;
   }