mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
check if file exists or not
This commit is contained in:
parent
2b2b4f5dd4
commit
1af469c8b1
@ -44,8 +44,7 @@ public final class Cache implements Command {
|
|||||||
String filePath = fileDir + "/" + fileName;
|
String filePath = fileDir + "/" + fileName;
|
||||||
|
|
||||||
File f = new File(filePath);
|
File f = new File(filePath);
|
||||||
// f.exists()
|
if (f.exists()) {
|
||||||
if (false) {
|
|
||||||
result = "{ file: '"+filePath+"', status: 0 }";
|
result = "{ file: '"+filePath+"', status: 0 }";
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user