Skip to content

Commit bb348be

Browse files
committed
added comments for skipping REST dirs
1 parent 376cc2e commit bb348be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

quick-start/src/main/java/com/marklogic/hub/factory/EntityModelFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ private List<FlowModel> getFlows(FlowModelFactory flowModelFactory,
9595
+ flowType.toString();
9696
List<String> flowNames = FileUtil.listDirectFolders(flowsFilePath);
9797
for (String flowName : flowNames) {
98+
// REST directory is not a flow. It's the rest options. skip it.
9899
if (flowName.equals("REST")) {
99100
continue;
100101
}

quick-start/src/main/java/com/marklogic/hub/service/FileSystemWatcherService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ private void registerAll(final Path start) throws IOException {
131131
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)
132132
throws IOException
133133
{
134+
// REST directory is not a flow. It's the rest options. skip it.
134135
if (dir.endsWith("REST")) {
135136
return FileVisitResult.SKIP_SUBTREE;
136137
}

0 commit comments

Comments
 (0)