openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1766226 - /openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java
Date Sat, 22 Oct 2016 19:30:18 GMT
Author: rmannibucau
Date: Sat Oct 22 19:30:18 2016
New Revision: 1766226

URL: http://svn.apache.org/viewvc?rev=1766226&view=rev
Log:
quick exit if dir doesnt exist

Modified:
    openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java

Modified: openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java
URL: http://svn.apache.org/viewvc/openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java?rev=1766226&r1=1766225&r2=1766226&view=diff
==============================================================================
--- openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java
(original)
+++ openwebbeans/microwave/trunk/microwave-core/src/main/java/org/apache/microwave/io/IO.java
Sat Oct 22 19:30:18 2016
@@ -34,6 +34,10 @@ public final class IO {
     }
 
     public static void delete(final File dir) {
+        if (!dir.exists()) {
+            return;
+        }
+
         if (dir.isFile()) {
             retryDelete(dir);
             return;



Mime
View raw message