> +      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.");
> +      }

```
checkArgument(dir.isDirectory, "%s is not a directory", dirPath);
```
? I know it's a different exception type, but still..?

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

Reply via email to