remove trailing slash

This commit is contained in:
Fil Maj 2012-02-16 17:48:48 -08:00
parent cd667d6af5
commit a52ba37cf7

View File

@ -736,7 +736,7 @@ public class FileUtils extends Plugin {
if (filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/data/" + ctx.getPackageName() + "/cache") || if (filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/data/" + ctx.getPackageName() + "/cache") ||
filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath()) || filePath.equals(Environment.getExternalStorageDirectory().getAbsolutePath()) ||
filePath.equals("/data/data/" + ctx.getPackageName() + "/")) { filePath.equals("/data/data/" + ctx.getPackageName())) {
return true; return true;
} }
return false; return false;
@ -825,7 +825,7 @@ public class FileUtils extends Plugin {
} }
else if (type == PERSISTENT) { else if (type == PERSISTENT) {
fs.put("name", "persistent"); fs.put("name", "persistent");
fs.put("root", "file:///data/data/" + ctx.getPackageName() + "/"); fs.put("root", "file:///data/data/" + ctx.getPackageName());
} }
else { else {
throw new IOException("No filesystem of type requested"); throw new IOException("No filesystem of type requested");