In this lecture, we’ll examine advanced file system traversal in Java: how a streamed traversal via
Files.walk() differs from the event-driven API
Files.walkFileTree(), how the
FileVisitor<T> contract and the convenient adapter
SimpleFileVisitor<T> work, what decisions
FileVisitResult returns (
CONTINUE,
SKIP_SUBTREE,
SKIP_SIBLINGS,
TERMINATE), how to correctly perform recursive deletion, size calculation, pattern-based search, and error handling, as well as which common mistakes occur in practice.