> @@ -38,8 +43,18 @@ public static void deleteRecursively(File file) throws
> IOException {
> }
> }
> }
> - if (!file.delete()) {
> - throw new IOException("Could not delete: " + file);
> +
> + /**
> + * Java-6 Compatible version of handling non-empty directories and
> access-denied on windows.
> + */
> + if(!file.delete()){
> + if(file.isDirectory() && file.listFiles().length > 0) {
Not in Java 6. Java 7 nio will allow us to improve the filesystem provider in
a number of ways, including access to partial readdir.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/454/files#r15482544