for (auto& Entry : recursive_directory_iterator("C:\\", directory_options::skip_permission_denied)) {
if (!Entry.exists() || !Entry.is_regular_file()) {
continue;
}
cout << Entry.path().string() << endl;
}
I am looping through all files in the C drive, with skip_permission_denied on. Yet I get an unhandled exception 0x76859962 when it gets to %localappdata%\Microsoft\Windows Sidebar\, which contains a settings.ini file and an empty folder named Gadgets. This happens both with and without admin permissions.