You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bc...@apache.org on 2012/02/17 23:58:02 UTC

[10/16] android commit: Return string for root location in requestFileSystem

Return string for root location in requestFileSystem


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/fd69095d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/fd69095d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/fd69095d

Branch: refs/heads/master
Commit: fd69095d3d27e4d45bf9438f3dab9b9b842a652d
Parents: 357c0ee
Author: Fil Maj <fi...@nitobi.com>
Authored: Wed Feb 15 17:30:32 2012 -0800
Committer: Fil Maj <fi...@nitobi.com>
Committed: Wed Feb 15 17:30:32 2012 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/fd69095d/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 2bf9620..5c217c2 100755
--- a/framework/src/org/apache/cordova/FileUtils.java
+++ b/framework/src/org/apache/cordova/FileUtils.java
@@ -782,14 +782,14 @@ public class FileUtils extends Plugin {
             File fp;
             fs.put("name", "temporary");
             if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
-                fs.put("root", getEntry(Environment.getExternalStorageDirectory().getAbsolutePath() +
-                        "/Android/data/" + ctx.getPackageName() + "/cache/"));
+                fs.put("root", Environment.getExternalStorageDirectory().getAbsolutePath() +
+                        "/Android/data/" + ctx.getPackageName() + "/cache/");
 
                 // Create the cache dir if it doesn't exist.
                 fp = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +
                     "/Android/data/" + ctx.getPackageName() + "/cache/");
             } else {
-                fs.put("root", getEntry("/data/data/" + ctx.getPackageName() + "/cache/"));
+                fs.put("root", "/data/data/" + ctx.getPackageName() + "/cache/");
                 // Create the cache dir if it doesn't exist.
                 fp = new File("/data/data/" + ctx.getPackageName() + "/cache/");
             }
@@ -798,9 +798,9 @@ public class FileUtils extends Plugin {
         else if (type == PERSISTENT) {
             fs.put("name", "persistent");
             if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
-                fs.put("root", getEntry(Environment.getExternalStorageDirectory()));
+                fs.put("root", Environment.getExternalStorageDirectory());
             } else {
-                fs.put("root", getEntry("/data/data/" + ctx.getPackageName()));
+                fs.put("root", "/data/data/" + ctx.getPackageName());
             }
         }
         else {