Traversing directories: list, walk, find and walkFileTree
In one line: list reads one level without the start; walk and find recurse depth-first from it; walkFileTree drives a FileVisitor by its results.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.