public static Path [ ] stat2Paths ( FileStatus [ ] stats ) { if ( stats == null ) return null ; Path [ ] ret = new Path [ stats . length ] ; for ( int i = 0 ; i < stats . length ; ++ i ) { ret [ i ] = stats [ i ] . getPath ( ) ; } return ret ; }
convert an array of FileStatus to an array of Path