List of usage examples for org.apache.commons.vfs2 FileObject deleteAll
int deleteAll() throws FileSystemException;
From source file:org.pentaho.metaverse.impl.VfsLineageWriter.java
/** * Method called on the writer to do any cleanup of the output artifacts, folders, etc. */// www.j ava2s. c o m @Override public void cleanOutput(LineageHolder holder) { String folderName = "unknown"; try { FileObject folder = getOutputDirectoryAsFile(holder); folderName = folder.getName().getPath(); folder.deleteAll(); } catch (IOException ioe) { log.error(Messages.getErrorString("ERROR.CouldNotDeleteFile", folderName), ioe); } }