mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
remove trailing slash
This commit is contained in:
parent
d274891c2c
commit
49d8d22d7f
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user