use of org.apache.camel.component.atmos.dto.AtmosDelResult in project camel by apache.
the class AtmosAPIFacade method del.
/**
* Delete every files and subdirectories inside the remote directory. In
* case the remotePath is a file, delete the file.
*
* @param remotePath the remote location to delete
* @return a AtmosResult object with the result of the delete operation.
* @throws AtmosException
*/
public AtmosResult del(String remotePath) throws AtmosException {
AtmosResult result = null;
ObjectPath op = new ObjectPath(remotePath);
AtmosAPIFacade.client.delete(op);
result = new AtmosDelResult();
result.setResultEntries(remotePath);
return result;
}
Aggregations