@Override public void onDelete() { try { fileUtilities.remove(this.localFolder); LOGGER.info("Deleted " + this); } catch (IOException e) { LOGGER.error("Couldn't delete " + this, e); } }
public void deleteContainer(ContainerDTO container, Consumer<Exception> errorCallback) { try { this.fileUtilities.remove(new File(container.getPath())); } catch (IOException e) { LOGGER.error("Cannot delete container (" + container.getPath() + ")! Exception: " + e.toString());