private UfsStatus [ ] trimIndirect ( UfsStatus [ ] children ) { List < UfsStatus > childrenList = new ArrayList <> ( ) ; for ( UfsStatus child : children ) { int index = child . getName ( ) . indexOf ( AlluxioURI . SEPARATOR ) ; if ( index < 0 || index == child . getName ( ) . length ( ) ) { childrenList . add ( child ) ; } } return childrenList . toArray ( new UfsStatus [ childrenList . size ( ) ] ) ; }
Remove indirect children from children list returned from recursive listing .