Skip to content

Commit

Permalink
Use system path separator for config globbing
Browse files Browse the repository at this point in the history
fixes #2279
  • Loading branch information
Fishbowler committed Feb 20, 2025
1 parent 1559dc5 commit f393464
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import maestro.orchestra.workspace.ExecutionOrderPlanner.getFlowsToRunInSequence
import maestro.orchestra.yaml.YamlCommandReader
import org.slf4j.LoggerFactory
import java.nio.file.Files
import java.nio.file.FileSystems
import java.nio.file.Path
import kotlin.io.path.*
import kotlin.streams.toList
Expand Down Expand Up @@ -63,7 +64,7 @@ object WorkspaceExecutionPlanner {
val globs = workspaceConfig.flows ?: listOf("*")

val matchers = globs.flatMap { glob ->
directories.map { it.fileSystem.getPathMatcher("glob:${it.pathString}/$glob") }
directories.map { it.fileSystem.getPathMatcher("glob:${it.pathString}" + FileSystems.getDefault().getSeparator() + "$glob") }
}

val unsortedFlowFiles = flowFiles + flowFilesInDirs.filter { path ->
Expand Down

0 comments on commit f393464

Please # to comment.