Upd. Scan. Improve Surface flow to count files.#652
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Surface scanner’s directory traversal to be deterministic so that scan resumption (based on on_exit_dir_offset) can reliably continue from the correct position across requests.
Changes:
- Materialize and sort a directory’s entries before iterating to ensure stable ordering across runs.
- Switch resume-path comparisons and saved
on_exit_dir_pathfrom$it->getPath()to the explicit$main_path.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* Queue log removed. * Upd. Logging FW update. * Upd. Logging FW update. Auto-tests. * Fix. Logger. Logs update fixed. * Upd. Logger. Dev merge and fixes. * Code. Code Review * Code. Code Review * upd version * upd version * Code. Code Review * Code. Code Review * Code. Code Review * Code. Code Review * Mod. React. Continue switch auth block. (#640) * Mod. React. Continue switch auth block. * Mod. React. Switch auth block. * fix eslint * fix psalm * upd * fix hints * upd hint again * Fix. Settings. Fix 2fa option switch. * ref by review * ref by review * fix typo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Upd. Settings. Improve modal layout. * reminify * fix eslint --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix. Code. Github action fixed (xdebug activated). * Mod. Link. Changing the link * Upd. Scan. Improve Surface flow to count files. (#652) * Upd. Scan. Improve Surface flow to count files. * Upd. Scan. Improve Surface flow to count files. * Upd. Scan. Improve Surface flow to count files. * Upd. Scan. Improve Surface flow to count files. * Update changelog * Upd. Banners. Improved statement of show banner. --------- Co-authored-by: alexandergull <alex.g@cleantalk.org> Co-authored-by: datorik <datorik@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Glomberg <bazz@bk.ru> Co-authored-by: AntonV1211 <antonV1211@yandex.ru> Co-authored-by: Aleksandr Banins <alexander.b@cleantalk.org> Co-authored-by: AntonV1211 <39616556+AntonV1211@users.noreply.github.com>
task https://app.doboard.com/1/task/48075