Search in sources :

Example 1 with AtmosDelResult

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;
}
Also used : ObjectPath(com.emc.atmos.api.ObjectPath) AtmosResult(org.apache.camel.component.atmos.dto.AtmosResult) AtmosDelResult(org.apache.camel.component.atmos.dto.AtmosDelResult)

Aggregations

ObjectPath (com.emc.atmos.api.ObjectPath)1 AtmosDelResult (org.apache.camel.component.atmos.dto.AtmosDelResult)1 AtmosResult (org.apache.camel.component.atmos.dto.AtmosResult)1