From da9f89849f886895c56ff07bcfd16122ba90a517 Mon Sep 17 00:00:00 2001 From: Olga Shalganova Date: Fri, 8 Aug 2025 18:25:35 +0200 Subject: [PATCH] Updated file sorting --- src/main/kotlin/swot/Compiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/swot/Compiler.kt b/src/main/kotlin/swot/Compiler.kt index e04eedeb8c..730b46de27 100644 --- a/src/main/kotlin/swot/Compiler.kt +++ b/src/main/kotlin/swot/Compiler.kt @@ -13,7 +13,7 @@ object CompilationState { fun main() { val root = File("lib/domains") - root.walkTopDown().forEach { + root.walkTopDown().toList().forEach { if (it.isFile) { val parts = it.toRelativeString(root).replace('\\', '/').removeSuffix(".txt").split('/').toList() if (!checkSet(CompilationState.stoplist, parts) && !checkSet(CompilationState.domains, parts)) {