/** * Deletes this file and all children. Shorthand for {@code delete(Selectors.SELECT_ALL)} * * @return the number of deleted files. * @throws FileSystemException if an error occurs. * @see #delete(FileSelector) * @see Selectors#SELECT_ALL */ @Override public int deleteAll() throws FileSystemException { return this.delete(Selectors.SELECT_ALL); }
/** * Deletes this file. * <p> * TODO - This will not fail if this is a non-empty folder. * * @return true if this object has been deleted * @throws FileSystemException if an error occurs. */ @Override public boolean delete() throws FileSystemException { return delete(Selectors.SELECT_SELF) > 0; }
/** * Deletes this file and all children. Shorthand for {@code delete(Selectors.SELECT_ALL)} * * @return the number of deleted files. * @throws FileSystemException if an error occurs. * @see #delete(FileSelector) * @see Selectors#SELECT_ALL */ @Override public int deleteAll() throws FileSystemException { return this.delete(Selectors.SELECT_ALL); }
/** * Deletes this file. * <p> * TODO - This will not fail if this is a non-empty folder. * * @return true if this object has been deleted * @throws FileSystemException if an error occurs. */ @Override public boolean delete() throws FileSystemException { return delete(Selectors.SELECT_SELF) > 0; }
/** * Deletes this file. * <p> * TODO - This will not fail if this is a non-empty folder. * * @return true if this object has been deleted * @throws FileSystemException if an error occurs. */ @Override public boolean delete() throws FileSystemException { return delete(Selectors.SELECT_SELF) > 0; }
/** * Deletes this file and all children. Shorthand for {@code delete(Selectors.SELECT_ALL)} * * @return the number of deleted files. * @throws FileSystemException if an error occurs. * @see #delete(FileSelector) * @see Selectors#SELECT_ALL */ @Override public int deleteAll() throws FileSystemException { return this.delete(Selectors.SELECT_ALL); }
/** * Deletes this file. * <p> * TODO - This will not fail if this is a non-empty folder. * * @return true if this object has been deleted * @throws FileSystemException if an error occurs. */ @Override public boolean delete() throws FileSystemException { return delete(Selectors.SELECT_SELF) > 0; }
/** * Deletes this file and all children. Shorthand for {@code delete(Selectors.SELECT_ALL)} * * @return the number of deleted files. * @throws FileSystemException if an error occurs. * @see #delete(FileSelector) * @see Selectors#SELECT_ALL */ @Override public int deleteAll() throws FileSystemException { return this.delete(Selectors.SELECT_ALL); }