walkFileTree should return consistently absolute or relative paths. #3772
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The expected behavior from
Files.walkFileTree
is that if the starting path is absolute, then all the visited paths are absolute. If the starting path is relative, then all the visited paths are relative.However, the output of
Files.walkFileTree("/dir/")
is something like this:As you can see, only the last entry is absolute. They should be consistent (in this case, they should be absolute).
The text was updated successfully, but these errors were encountered: