From 1af469c8b1fb07dbbab2255e783a3cdb77662e07 Mon Sep 17 00:00:00 2001 From: Dave Johnson Date: Thu, 29 Jul 2010 11:20:16 -0700 Subject: [PATCH] check if file exists or not --- framework/src/com/phonegap/api/impl/Cache.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/src/com/phonegap/api/impl/Cache.java b/framework/src/com/phonegap/api/impl/Cache.java index 93e1f9f8..a9d54f4d 100644 --- a/framework/src/com/phonegap/api/impl/Cache.java +++ b/framework/src/com/phonegap/api/impl/Cache.java @@ -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 {