> @@ -41,7 +44,11 @@ public static void deleteRecursively(File file) throws
> IOException {
> }
> }
> if (!file.delete()) {
> - throw new IOException("Could not delete: " + file);
> + // On windows, often the directory does not register as empty right
> away.
> + Uninterruptibles.sleepUninterruptibly(5, TimeUnit.SECONDS);
@zack-shoylev this seems fragile; we most likely cannot delete a file on
Windows because someone else has a handle to it. We should revert this commit
and close the handle.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/217/files#r7943972