mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 08:38:13 -07:00
Bug in file finding.
This commit is contained in:
parent
913433dab9
commit
aec410b2b7
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class IncludedFile(val fromOriginal: From, val toOriginal: To, val specs: List<I
|
||||||
val result = arrayListOf<File>()
|
val result = arrayListOf<File>()
|
||||||
specs.forEach { spec ->
|
specs.forEach { spec ->
|
||||||
// val fullDir = if (directory == null) from else KFiles.joinDir(directory, from)
|
// val fullDir = if (directory == null) from else KFiles.joinDir(directory, from)
|
||||||
spec.toFiles(directory, from).forEach { source ->
|
spec.toFiles(directory, from).filter { it.isFile }.forEach { source ->
|
||||||
result.add(if (source.isAbsolute) source else File(source.path))
|
result.add(if (source.isAbsolute) source else File(source.path))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue