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 de33bb5 commit 700c5ddCopy full SHA for 700c5dd
compiler/src/dotty/tools/io/Directory.scala
@@ -59,7 +59,7 @@ class Directory(jpath: JPath) extends Path(jpath) {
59
def files: Iterator[File] = list collect { case x: File => x }
60
61
override def walkFilter(cond: Path => Boolean): Iterator[Path] =
62
- list filter cond flatMap (_ walkFilter cond)
+ list.filter(cond).flatMap(_.walkFilter(cond))
63
64
def deepFiles: Iterator[File] = Path.onlyFiles(deepList())
65
0 commit comments