FileVisitor.visitFile includes the BasicFileAttributes as a parameter which makes recursive operations that require any of the basic attributes very efficient.
It has been suggested that preVisitDirectory should pass the BasicFileAttributes aswell. This should improve performance of recursive operations where the ratio of directories to non-directories is high.
It has been suggested that preVisitDirectory should pass the BasicFileAttributes aswell. This should improve performance of recursive operations where the ratio of directories to non-directories is high.
- duplicates
-
JDK-6907737 (file) FileVisitor and Files.walkFileTree issues
-
- Closed
-