forked from github/cordova-android
remove trailing slash
This commit is contained in:
parent
cd667d6af5
commit
a52ba37cf7
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user