FileTreeWalk: correct usage not to filter out subdirectories

This commit is contained in:
Ilya Gorbunov
2015-12-07 21:46:43 +03:00
parent 515d2cd3e7
commit c23c2dbe85
@@ -61,7 +61,7 @@ class LazyClasspathWatcher(classpath: Iterable<String>,
fileIds = classpath
.map { File(it) }
.asSequence()
.flatMap { FileTreeWalk(it, filter = ::isClasspathFile) }
.flatMap { it.walk().filter(::isClasspathFile) }
.map { FileId(it, it.lastModified(), it.md5Digest()) }
.toArrayList()
val nowMs = TimeUnit.MILLISECONDS.toMillis(System.nanoTime())