Closed alacuku closed 3 weeks ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alacuku, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here
LGTM label has been added.
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area plugins
What this PR does / why we need it:
std::filesystem::directory_iterator
works by retrieving entries on the fly as it iterates over them, rather than preloading all entries. This implies that entries could indeed disappear (or appear) between iterations, especially in highly dynamic directories such as/proc/
. The loop continues processing other entries even if an exception occurs, allowing for robust and uninterrupted iteration.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: