jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds] Delete objects in a container efficiently. (#214)
Date Fri, 21 Mar 2014 21:57:57 GMT
> +         listing = blobStore.list(containerName, options);
> +      } catch (ContainerNotFoundException ce) {
> +         return listing;
> +      }
> +
> +      // recurse on subdirectories
> +      if (options.isRecursive()) {
> +         for (StorageMetadata md : listing) {
> +            String fullPath = parentIsFolder(options, md) ? options.getDir()
> +                  + "/" + md.getName() : md.getName();
> +            switch (md.getType()) {
> +            case BLOB:
> +               break;
> +            case FOLDER:
> +            case RELATIVE_PATH:
> +               if (options.isRecursive() &&

Repeated test of isRecusive from above.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/214/files#r10856243
Mime
View raw message