dont log deletion of deletelist.txt

This commit is contained in:
zzz
2017-02-05 14:58:47 +00:00
parent bbbbfe2417
commit aa098ac800

View File

@@ -202,16 +202,17 @@ public class InstallUpdate {
if (df.isAbsolute()) if (df.isAbsolute())
continue; continue;
df = new File(context.getBaseDir(), fl); df = new File(context.getBaseDir(), fl);
if (df.exists() && !df.isDirectory()) { if (df.exists() && df.isFile()) {
if (df.delete()) if (df.delete())
System.out.println("INFO: File [" + fl + "] deleted"); System.out.println("INFO: File [" + fl + "] deleted");
} }
} }
} catch (IOException ioe) {} } catch (IOException ioe) {
finally { } finally {
if (in != null) try { in.close(); } catch(IOException ioe) {} if (in != null) try { in.close(); } catch(IOException ioe) {}
if (deleteFile.delete()) if (deleteFile.delete()) {
System.out.println("INFO: File [" + DELETE_FILE + "] deleted"); //System.out.println("INFO: File [" + DELETE_FILE + "] deleted");
}
} }
} }
} }