How do I solve this problem using Files.walk(path) instead of Files.walkFileTree()? Why isn't this working?