[Arakhnę-Dev] [266] * Bug fix: recursive deletion of directories. |
[ Thread Index |
Date Index
| More arakhne.org/dev Archives
]
Revision: 266
Author: galland
Date: 2011-08-21 23:22:00 +0200 (Sun, 21 Aug 2011)
Log Message:
-----------
* Bug fix: recursive deletion of directories.
Modified Paths:
--------------
trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java
Modified: trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java
===================================================================
--- trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java 2011-08-21 21:16:53 UTC (rev 265)
+++ trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java 2011-08-21 21:22:00 UTC (rev 266)
@@ -1071,7 +1071,7 @@
f = candidates.getFirst();
if (f.isDirectory()) {
children = f.listFiles();
- if (children!=null) {
+ if (children!=null && children.length>1) {
// Non empty directory
for(File c : children) {
candidates.push(c);