private boolean searchHarDir ( FileStatus stat ) throws IOException { if ( ! stat . isDir ( ) ) { return false ; } String pattern = stat . getPath ( ) . toString ( ) + "/*" + RaidNode . HAR_SUFFIX + "*" ; FileStatus [ ] stats = globStatus ( new Path ( pattern ) ) ; if ( stats != null && stats . length > 0 ) { return true ; } stats = fs . listStatus ( stat . getPath ( ) ) ; // search deeper. for ( FileStatus status : stats ) { if ( searchHarDir ( status ) ) { return true ; } } return false ; }
search the Har - ed parity files