mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix recursive search.
This commit is contained in:
parent
754b2df5fc
commit
83633cd011
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ class KFiles {
|
|||
allDirs.forEach { dir ->
|
||||
if (! dir.exists()) {
|
||||
kobaltLog(2, "Couldn't find directory $dir")
|
||||
} else if (! dir.isDirectory) {
|
||||
throw IllegalArgumentException("$dir is not a directory")
|
||||
} else {
|
||||
val files = findRecursively(dir, function)
|
||||
files.map { Paths.get(it) }.forEach {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue