code: public void excludeSubdirectories(File directory, TransferSpecs transferSpecs) {
  
  		if ( directory == null || !directory.exists() || !directory.isDirectory() ) {
              throw new IllegalArgumentException("Must provide a directory to upload");
          }
  
  		List<File> files = new LinkedList<File>();
          listFiles(directory, files);
  
          for(TransferSpec transferSpec : transferSpecs.transfer_specs) {
  
          	Vector<NodePath> paths = new Vector<NodePath>();
              for (File f : files) {
              	NodePath path = new NodePath();
              	path.setDestination(f.getName());
              	path.setSource(f.getAbsolutePath());
              	paths.add(path);
              }
              transferSpec.setPaths(paths);
  		}
  
  	}
docs: List all files within the folder to exclude all subdirectories & modify the transfer spec to
  pass onto Aspera SDK
  
  @param directory
  @param transferSpecs