Skip to content

Commit 234f514

Browse files
committed
Explicitly output "*" to the log file as the file pattern for rules that do not have any.
1 parent 245b240 commit 234f514

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Source/FilesystemDirectorBuilder.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,16 @@ namespace Pathwinder
139139
static_cast<int>(newFilesystemRule.GetTargetDirectoryFullPath().length()),
140140
newFilesystemRule.GetTargetDirectoryFullPath().data());
141141

142-
for (const auto& filePattern : newFilesystemRule.GetFilePatterns())
143-
Message::OutputFormatted(
144-
Message::ESeverity::Info, L" File pattern = \"%s\"", filePattern.c_str());
142+
if (true == newFilesystemRule.HasFilePatterns())
143+
{
144+
for (const auto& filePattern : newFilesystemRule.GetFilePatterns())
145+
Message::OutputFormatted(
146+
Message::ESeverity::Info, L" File pattern = \"%s\"", filePattern.c_str());
147+
}
148+
else
149+
{
150+
Message::Output(Message::ESeverity::Info, L" File pattern = \"*\"");
151+
}
145152
}
146153
else
147154
{

0 commit comments

Comments
 (0)