protected void deleteDirectory ( File directoryName ) { if ( debugLogger . isLoggable ( Level . FINE ) && isDebugEnabled ( ) ) { debugLogger . logp ( Level . FINE , thisClass , "deleteDirectory" , "empty directory " + ( ( directoryName == null ) ? "None" : directoryName . getPath ( ) ) ) ; } if ( AccessHelper . deleteFile ( directoryName ) ) { // If directory is empty, delete if ( debugLogger . isLoggable ( Level . FINE ) && isDebugEnabled ( ) ) { debugLogger . logp ( Level . FINE , thisClass , "deleteDirectory" , "delete " + directoryName . getName ( ) ) ; } } else { // Else the directory is not empty, and deletion fails if ( isDebugEnabled ( ) ) { debugLogger . logp ( Level . WARNING , thisClass , "deleteDirectory" , "Failed to delete directory " + directoryName . getPath ( ) ) ; } } }
Deletes the specified directory