/** * Deletes this resource. * Same as {@link #delete(boolean)} called with {@code false}. * * @see FileSystem#deleteFile */ public void delete() throws FileSystemException { delete(false); }
/** * Deletes this resource. * Same as {@link #delete(boolean)} called with {@code false}. * * @see FileSystem#deleteFile */ public void delete() throws FileSystemException { delete(false); }
/** * Deletes this resource. * Same as {@link #delete(boolean)} called with {@code false}. * * @see FileSystem#deleteFile */ public void delete() throws FileSystemException { delete(false); }
void delete(boolean pruneEmptyParentDirs) { try { fsResource.delete(pruneEmptyParentDirs); } catch (FileSystemException fse) { // ignore LOG.warn("Error while deleting BLOBFileValue: " + fse.getMessage()); } }
void delete(boolean pruneEmptyParentDirs) { try { fsResource.delete(pruneEmptyParentDirs); } catch (FileSystemException fse) { // ignore LOG.warn("Error while deleting BLOBFileValue: " + fse.getMessage()); } }
/** * {@inheritDoc} */ public boolean remove(String blobId) throws Exception { // the blobId is an absolute file system path FileSystemResource res = new FileSystemResource(fs, blobId); if (!res.exists()) { return false; } // delete resource and prune empty parent folders res.delete(true); return true; }
/** * {@inheritDoc} */ public boolean remove(String blobId) throws Exception { // the blobId is an absolute file system path FileSystemResource res = new FileSystemResource(fs, blobId); if (!res.exists()) { return false; } // delete resource and prune empty parent folders res.delete(true); return true; }
if (problemIdentifiers.isEmpty()) { try { identifiersToDeleteFile.delete(); } catch (FileSystemException e) { log.warn("Unable to delete the " + IDENTIFIERS_TO_DELETE_FILE_KEY
/** * {@inheritDoc} */ protected void destroy(NodeReferences refs) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String refsFilePath = buildNodeReferencesFilePath(refs.getTargetId()); FileSystemResource refsFile = new FileSystemResource(itemStateFS, refsFilePath); try { if (refsFile.exists()) { // delete resource and prune empty parent folders refsFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete " + refs; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeReferences refs) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String refsFilePath = buildNodeReferencesFilePath(refs.getTargetId()); FileSystemResource refsFile = new FileSystemResource(itemStateFS, refsFilePath); try { if (refsFile.exists()) { // delete resource and prune empty parent folders refsFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete " + refs; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeReferences refs) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String refsFilePath = buildNodeReferencesFilePath(refs.getTargetId()); FileSystemResource refsFile = new FileSystemResource(itemStateFS, refsFilePath); try { if (refsFile.exists()) { // delete resource and prune empty parent folders refsFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete " + refs; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeState state) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } NodeId id = state.getNodeId(); String nodeFilePath = buildNodeFilePath(id); FileSystemResource nodeFile = new FileSystemResource(itemStateFS, nodeFilePath); try { if (nodeFile.exists()) { // delete resource and prune empty parent folders nodeFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete node state: " + id; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeState state) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } NodeId id = state.getNodeId(); String nodeFilePath = buildNodeFilePath(id); FileSystemResource nodeFile = new FileSystemResource(itemStateFS, nodeFilePath); try { if (nodeFile.exists()) { // delete resource and prune empty parent folders nodeFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete node state: " + id; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeReferences refs) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String refsFilePath = buildNodeReferencesFilePath(refs.getTargetId()); FileSystemResource refsFile = new FileSystemResource(itemStateFS, refsFilePath); try { if (refsFile.exists()) { // delete resource and prune empty parent folders refsFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete " + refs; log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeState state) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String nodeFilePath = buildNodeFilePath(state.getNodeId()); FileSystemResource nodeFile = new FileSystemResource(itemStateFS, nodeFilePath); try { if (nodeFile.exists()) { // delete resource and prune empty parent folders nodeFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete node state: " + state.getNodeId(); log.debug(msg); throw new ItemStateException(msg, fse); } }
/** * {@inheritDoc} */ protected void destroy(NodeState state) throws ItemStateException { if (!initialized) { throw new IllegalStateException("not initialized"); } String nodeFilePath = buildNodeFilePath(state.getNodeId()); FileSystemResource nodeFile = new FileSystemResource(itemStateFS, nodeFilePath); try { if (nodeFile.exists()) { // delete resource and prune empty parent folders nodeFile.delete(true); } } catch (FileSystemException fse) { String msg = "failed to delete node state: " + state.getNodeId(); log.debug(msg); throw new ItemStateException(msg, fse); } }
if (propFile.exists()) { propFile.delete(true);
if (propFile.exists()) { propFile.delete(true);
if (propFile.exists()) { propFile.delete(true);
if (propFile.exists()) { propFile.delete(true);