Skip to content

Poco::Glob on Windows does not recurse #5001

@peakpeak-github

Description

@peakpeak-github

Windows 11 x64, Visual Studio 2022, Poco Foundation (debug_static_mt) 1.14.2 and test code compiled with either C++17 or C++20, x64
The directory E:/Dok/Arduino has 90 .h files and 78 subdirectories. When I search with E:/Dok/Arduino/**/*.h nothing is returned.

E:/Dok/Arduino/**.h returns the one .h file in E:/Dok/Arduino
E:/Dok/Arduino/** returns the subdirectory in E:/Dok/Arduino but does not recurse further.

(When using another glob program, files are properly returned).

Test code:
// constexpr const char *path = R"(E:/Dok/Arduino/**)"; // ... or
constexpr const char *path = R"(E:\Dok\Arduino\**)";

int main()
{
set<string> files;
Glob::glob(path, files, 0x04);
set::iterator it = files.begin();
for (; it != files.end(); ++it)
{
std::cout << *it << std::endl;
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions