mirror of
https://github.com/apache/jclouds.git
synced 2025-02-07 18:49:52 +00:00
Previously we built up a list of all blobs then executed removeBlob on all of them simultaneously. For sufficiently large folders this would cause an OutOfMemoryError. There are cleaner ways to write this but this approach mimimizes the patch. I will continue working on this in subsequent commits, including optimizing for deep subdirectories. This commit also fixes a bug in the transient blobstore where deleting elements while reading a directory resulted in NoSuchElementException.