You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2019/06/13 00:09:35 UTC

[incubator-datasketches-characterization] branch master updated: Update DirectoryWalker

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git


The following commit(s) were added to refs/heads/master by this push:
     new 74ddef6  Update DirectoryWalker
     new c716a14  Merge branch 'master' of git@github.com:apache/incubator-datasketches-characterization.git
74ddef6 is described below

commit 74ddef61fa6456af6b461f1cc1d7fcde082b44aa
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Wed Jun 12 17:05:43 2019 -0700

    Update DirectoryWalker
---
 .../java/com/yahoo/sketches/DirectoryWalker.java    | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/src/main/java/com/yahoo/sketches/DirectoryWalker.java b/src/main/java/com/yahoo/sketches/DirectoryWalker.java
index c312e6f..53b8e30 100644
--- a/src/main/java/com/yahoo/sketches/DirectoryWalker.java
+++ b/src/main/java/com/yahoo/sketches/DirectoryWalker.java
@@ -117,13 +117,13 @@ public class DirectoryWalker {
     return fileList;
   }
 
-  @Test
+  @Test //example
   public static void printFiles() {
     final String rootPath = "/Users/lrhodes/dev/git/Apache/datasketches-memory/src/";
-    final String regExSelector = ".+[.]java";
+    final String fileSelector = ".+[.]java";
     final boolean recursive = true;
 
-    final List<String> fileList = appendFileList(rootPath, regExSelector, recursive);
+    final List<String> fileList = appendFileList(rootPath, fileSelector, recursive);
     final int size = fileList.size();
 
     for (int i = 0; i < size; i++) {
@@ -134,19 +134,4 @@ public class DirectoryWalker {
 
   static void println(final String s) { System.out.println(s); }
 
-  /**
-   * blah
-   * @param args blah
-   */
-  public static void main(final String[] args) {
-    final String rootPath = "/Users/lrhodes/dev/git/Apache/datasketches-memory/src";
-    final String regExSelector = ".+[.]java";
-    final boolean recursive = true;
-
-    final List<String> fileList = appendFileList(rootPath, regExSelector, recursive);
-    final int size = fileList.size();
-    for (int i = 0; i < size; i++) {
-      System.out.println(fileList.get(i));
-    }
-  }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org