Skip to content

Commit

Permalink
fix(core): LocalFileWatcher correctly load existing flow in folder
Browse files Browse the repository at this point in the history
close #6122
  • Loading branch information
Skraye committed Nov 26, 2024
1 parent 654d30e commit 1707b1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) th

@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.endsWith(".yml") || file.endsWith(".yaml")) {
if (file.toString().endsWith(".yml") || file.toString().endsWith(".yaml")) {
String content = Files.readString(file, Charset.defaultCharset());
Optional<Flow> flow = parseFlow(content, file);

Expand Down

0 comments on commit 1707b1e

Please sign in to comment.