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 <[email protected]> Authored: Wed Apr 30 13:42:35 2014 -0400 Committer: Andrew Grieve <[email protected]> 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; }
