diff options
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java b/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java index 6fc09ff..35a6b3d 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcutils/FileUtils.java @@ -18,24 +18,23 @@ public class FileUtils { * * * @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 * - * TODO If it becomes necessary, write another overload for - * this with all the buttons and knobs from walkFileTree + * TODO If it becomes necessary, write another overload + * for this with all the buttons and knobs from + * walkFileTree */ - public static void traverseDirectory(Path root, - BiPredicate<Path, BasicFileAttributes> predicate, - BiPredicate<Path, BasicFileAttributes> action) - throws IOException { + public static void traverseDirectory(Path root, BiPredicate<Path, BasicFileAttributes> predicate, + BiPredicate<Path, BasicFileAttributes> action) throws IOException { Files.walkFileTree(root, new FunctionalFileVisitor(predicate, action)); } } |
