summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcutils/FileUtils.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2020-04-13 18:40:41 -0400
committerBen Culkin <scorpress@gmail.com>2020-04-13 18:40:41 -0400
commitd4ca769e542b2489b1e23cfcbdc3a0b7275b87cd (patch)
tree1653a7399f97fb0c63ce62e3f60fd830d5c37f70 /base/src/main/java/bjc/utils/funcutils/FileUtils.java
parent2ac2e31a56ae59ee582e43a90c3495f86dd9ee7a (diff)
Cleanup pass
Cleanup pass to uniformize things
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/FileUtils.java')
-rw-r--r--base/src/main/java/bjc/utils/funcutils/FileUtils.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/base/src/main/java/bjc/utils/funcutils/FileUtils.java b/base/src/main/java/bjc/utils/funcutils/FileUtils.java
index 04ac6b0..477e395 100644
--- a/base/src/main/java/bjc/utils/funcutils/FileUtils.java
+++ b/base/src/main/java/bjc/utils/funcutils/FileUtils.java
@@ -14,30 +14,31 @@ import java.util.function.BiPredicate;
public class FileUtils {
/*
* @NOTE
- *
- * If it becomes necessary, write another overload for this with all the
- * buttons and knobs from walkFileTree.
+ *
+ * If it becomes necessary, write another overload for this with all the buttons
+ * and knobs from walkFileTree.
*/
/**
* Traverse a directory recursively. This is a depth-first traversal.
*
* @param root
- * The directory to start the traversal at.
+ * The directory to start the traversal at.
*
* @param predicate
- * The predicate to determine whether or not to traverse
- * a directory.
+ * The predicate to determine whether or not to traverse a
+ * directory.
*
* @param action
- * The action to invoke upon each file in the directory.
- * Returning true means to continue the traversal,
- * returning false stops it.
+ * The action to invoke upon each file in the directory.
+ * Returning true means to continue the traversal, returning
+ * false stops it.
*
* @throws IOException
- * If the walk throws an exception.
+ * If the walk throws an exception.
*
*/
- public static void traverseDirectory(final Path root, final BiPredicate<Path, BasicFileAttributes> predicate,
+ public static void traverseDirectory(final Path root,
+ final BiPredicate<Path, BasicFileAttributes> predicate,
final BiPredicate<Path, BasicFileAttributes> action) throws IOException {
Files.walkFileTree(root, new FunctionalFileVisitor(predicate, action));
}