incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [8/21] android commit: remove trailing slash
Date Mon, 20 Feb 2012 21:01:00 GMT
remove trailing slash


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/49d8d22d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/49d8d22d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/49d8d22d

Branch: refs/heads/master
Commit: 49d8d22d7f6c44458a33483caa4428ab0facd1ba
Parents: d274891
Author: Fil Maj <filip.maj@nitobi.com>
Authored: Thu Feb 16 17:48:48 2012 -0800
Committer: Joe Bowser <bowserj@apache.org>
Committed: Mon Feb 20 11:04:37 2012 -0800

----------------------------------------------------------------------
 framework/src/org/apache/cordova/FileUtils.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/49d8d22d/framework/src/org/apache/cordova/FileUtils.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java
index 31a4f52..73a1486 100755
--- a/framework/src/org/apache/cordova/FileUtils.java
+++ b/framework/src/org/apache/cordova/FileUtils.java
@@ -736,7 +736,7 @@ public class FileUtils extends Plugin {
 
         if (filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath() +
"/Android/data/" + ctx.getPackageName() + "/cache") ||
                 filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath())
|| 
-                filePath.equals("/data/data/" + ctx.getPackageName() + "/")) {
+                filePath.equals("/data/data/" + ctx.getPackageName())) {
             return true;
         }
         return false;
@@ -825,7 +825,7 @@ public class FileUtils extends Plugin {
         }
         else if (type == PERSISTENT) {
             fs.put("name", "persistent");
-            fs.put("root", "file:///data/data/" + ctx.getPackageName() + "/");
+            fs.put("root", "file:///data/data/" + ctx.getPackageName());
         }
         else {
             throw new IOException("No filesystem of type requested");


Mime
View raw message