fullRuntime/src/sc/util/FileUtil.java
public static String listFiles(String dir, String pattern) {
      List<String> result = new ArrayList<String>();

      addFilesInDirectory(dir, "", new PatternFilenameFilter(Pattern.compile(pattern)), result);

      for (int i = 0; i < result.size(); i++)
         result.set(i, FileUtil.concat(dir, result.get(i)));

      return StringUtil.arrayToPath(result.toArray(), false);
   }
/** A utility method which lists files in the given directory matching a Java regex pattern */
A utility method which lists files in the given directory matching a Java regex pattern
A utility method which lists files in the given directory matching a Java regex pattern
public static String listFiles(String dir, String pattern) {
      List<String> result = new ArrayList<String>();
      addFilesInDirectory(dir, "", new PatternFilenameFilter(Pattern.compile(pattern)), result);
      for (int i = 0; i < result.size(); i++)
         result.set(i, FileUtil.concat(dir, result.get(i)));
      return StringUtil.arrayToPath(result.toArray(), false);
   }
public static String listFiles ( String dir , String pattern ) { List < String > result = new ArrayList < String > ( ) ; addFilesInDirectory ( dir , "" , new PatternFilenameFilter ( Pattern . compile ( pattern ) ) , result ) ; for ( int i = 0 ; i < result . size ( ) ; i ++ ) result . set ( i , FileUtil . concat ( dir , result . get ( i ) ) ) ; return StringUtil . arrayToPath ( result . toArray ( ) , false ) ; }
A utility method which lists files in the given directory matching a Java regex pattern
A utility method which lists files in the given directory matching a Java regex pattern