Exemplo n.º 1
0
 public Folder getFolder(String path)
     throws IOException, com.ettrema.httpclient.HttpException, NotAuthorizedException,
         BadRequestException {
   Resource res = find(path);
   if (res instanceof Folder) {
     return (Folder) res;
   } else {
     throw new RuntimeException("Not a folder: " + res.href());
   }
 }