@ Override public FileNode deleteTree ( ) throws DeleteException , NodeNotFoundException { if ( ! exists ( ) ) { throw new NodeNotFoundException ( this ) ; } try { doDeleteTree ( path ) ; } catch ( IOException e ) { throw new DeleteException ( this , e ) ; } return this ; }
Deletes a file or directory . Directories are deleted recursively . Handles Links .