Fix get_files_in_dir for boost 1.83 (#7880)

In boost 1.83 directory_entry::status() sometimes doesn't reset the error_code parameter.

Fixes #7866
This commit is contained in:
gfgtdf 2023-08-28 19:02:48 +02:00 committed by GitHub
parent 368103aad6
commit 8fc134bfee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -445,6 +445,7 @@ void get_files_in_dir(const std::string& dir,
}
for(; di != end; ++di) {
ec.clear();
bfs::file_status st = di->status(ec);
if(ec) {
LOG_FS << "Failed to get file status of " << di->path().string() << ": " << ec.message();