ui/src/main/java/ucar/nc2/ui/grib/GribRewritePanel.java
public java.util.List<FileBean> scan(String top, Formatter errlog) {

    List<FileBean> result = new ArrayList<>();

    File topFile = new File(top);
    if (!topFile.exists()) {
      errlog.format("File %s does not exist", top);
      return result;
    }

    if (topFile.isDirectory())
      scanDirectory(topFile, false, result, errlog);
    else {
      FileBean fdb = null;
      try {
        fdb = new FileBean(topFile);
      } catch (IOException e) {
        System.out.printf("FAIL, skip %s%n", topFile.getPath());
      }
      result.add(fdb);
    }

    return result;
  }
public java.util.List<FileBean> scan(String top, Formatter errlog) {

    List<FileBean> result = new ArrayList<>();

    File topFile = new File(top);
    if (!topFile.exists()) {
      errlog.format("File %s does not exist", top);
      return result;
    }

    if (topFile.isDirectory())
      scanDirectory(topFile, false, result, errlog);
    else {
      FileBean fdb = null;
      try {
        fdb = new FileBean(topFile);
      } catch (IOException e) {
        System.out.printf("FAIL, skip %s%n", topFile.getPath());
      }
      result.add(fdb);
    }

    return result;
  }
public java . util . List < FileBean > scan ( String top , Formatter errlog ) { List < FileBean > result = new ArrayList <> ( ) ; File topFile = new File ( top ) ; if ( ! topFile . exists ( ) ) { errlog . format ( "File %s does not exist" , top ) ; return result ; } if ( topFile . isDirectory ( ) ) scanDirectory ( topFile , false , result , errlog ) ; else { FileBean fdb = null ; try { fdb = new FileBean ( topFile ) ; } catch ( IOException e ) { System . out . printf ( "FAIL, skip %s%n" , topFile . getPath ( ) ) ; } result . add ( fdb ) ; } return result ; }
/////////////
/////////////