You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/04/30 19:50:51 UTC

git commit: CB-6571 android: Make DirectoryEntry.toURL() have a trailing /

Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master 31200d38a -> 586e5bd96


CB-6571 android: Make DirectoryEntry.toURL() have a trailing /


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/586e5bd9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/586e5bd9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/586e5bd9

Branch: refs/heads/master
Commit: 586e5bd964b50bc06f7cae3f8f606556ef4e09ab
Parents: 31200d3
Author: Andrew Grieve <ag...@chromium.org>
Authored: Wed Apr 30 13:42:35 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Apr 30 13:50:43 2014 -0400

----------------------------------------------------------------------
 src/android/Filesystem.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/586e5bd9/src/android/Filesystem.java
----------------------------------------------------------------------
diff --git a/src/android/Filesystem.java b/src/android/Filesystem.java
index f03aace..af74aae 100644
--- a/src/android/Filesystem.java
+++ b/src/android/Filesystem.java
@@ -54,6 +54,9 @@ public abstract class Filesystem {
         // Backwards compatibility
         entry.put("filesystem", "temporary".equals(fsName) ? 0 : 1);
 
+        if (isDir && !nativeURL.endsWith("/")) {
+            nativeURL += "/";
+        }
     	entry.put("nativeURL", nativeURL);
         return entry;
     }