We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\\?\
The following snippet will not return the expected subdir:
// long path auto dummy = std::filesystem::temp_directory_path() / "loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonooooooooog" / "dummy" / "dummy"; // prefix with the magic '\\?\' shenanigans dummy = std::filesystem::path("\\\\?\\" + dummy.string()); // directory is created fine auto errorCode = std::error_code{}; std::filesystem::create_directories(dummy, errorCode); assert(!errorCode); // but globbing fails to find any subdirs. Shortening the path makes it work const auto matchingEntries = glob::glob(dummy.parent_path().string() + "/*"); assert (!matchingEntries.empty());
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following snippet will not return the expected subdir:
The text was updated successfully, but these errors were encountered: