Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
if (null != prefixRoot) {
String entryKey = computeEntryKey(prefixRoot.relativize(file));
if (null != entryKey) {
int existingPrefixId = prefixTrie.apply(entryKey);
if (-1 != existingPrefixId && prefixId != existingPrefixId) {
log.warn(
"Detected duplicate content under '{}'. Ensure your content is under a distinct directory.",
entryKey);
}
prefixTrie.put(entryKey, prefixId);
if (entryKey.endsWith("*")) {
// optimization: wildcard will match everything under here so can skip
Expand Down
Loading