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;
  }
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

@param stats
an array of FileStatus objects
@return an array of paths corresponding to the input