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:
parent
368103aad6
commit
8fc134bfee
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue