We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a42143 commit ff0d1fdCopy full SHA for ff0d1fd
compiler/src/dotty/tools/io/Directory.scala
@@ -67,7 +67,7 @@ class Directory(jpath: JPath) extends Path(jpath) {
67
* until it runs out of contents.
68
*/
69
def deepList(depth: Int = -1): Iterator[Path] =
70
- if (depth < 0) list ++ (dirs flatMap (_ deepList depth))
+ if (depth < 0) list ++ dirs.flatMap(_.deepList(depth))
71
else if (depth == 0) Iterator.empty
72
else list ++ (dirs flatMap (_ deepList (depth - 1)))
73
}
0 commit comments