mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +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;
|
||||
|
||||
File f = new File(filePath);
|
||||
// f.exists()
|
||||
if (false) {
|
||||
if (f.exists()) {
|
||||
result = "{ file: '"+filePath+"', status: 0 }";
|
||||
} else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user