Currently the FileTreeWalker (used by Files.walkFileTree) uses recursive when walking the file tree. It would be desirable to change this to use a stack data structure. Although stack overflow has not been reported, it is confusing to see a lot of visit methods in stack traces. It would also make the FileTreeWalker more generally useful.
(fs) Eliminate recursion from FileTreeWalker
Currently the FileTreeWalker (used by Files.walkFileTree) uses recursive when walking the file tree. It would be desirable to change this to use a stack data structure. Although stack overflow has not been reported, it is confusing to see a lot of visit methods in stack traces. It would also make the FileTreeWalker more generally useful.