> +      BlobStoreContext context = 
> ContextBuilder.newBuilder(provider).credentials(username, apiKey)
> +            .buildView(BlobStoreContext.class);
> +      storage = context.getBlobStore();
> +      rackspace = 
> context.unwrap(CloudFilesApiMetadata.CONTEXT_TOKEN).getApi();
> +   }
> +
> +   /**
> +    * Generate a list of all of the local files under the specified dirPath 
> and then upload them to container.
> +    */
> +   private void uploadDirectory(String dirPath, String container) 
> +         throws FileNotFoundException, InterruptedException, 
> ExecutionException {
> +      File dir = new File(dirPath);
> +
> +      if (!dir.isDirectory()) {
> +         throw new FileNotFoundException(dirPath + " is not a directory.");
> +      }

I like this more. I'll change it.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5438942

Reply via email to