common: remove unused recursive file enumeration #681

Manually merged
github merged 2 commits from gh-pr/681/head into gh-pr/681/base 2026-11-26 09:29:26 +00:00
Owner

@⁠maayan080 on GitHub · 2026-09-17 17:18 UTC · original
maayan080:fix/win-findfiles-reparse-points → main · +0 −157 · 6 files · 2 commits · merged 2026-09-20 14:50 UTC

The recursive File::FindFiles API has no production callers. Remove it, the Windows and Linux SysFileFindFiles implementations, and their result types. Remove the test assertions that exercise the deleted API.

Validation: repository-wide reference checks and git diff --check pass. Build and runtime tests have not been run for this update; local testing is pending.

**@⁠maayan080** on GitHub · 2026-09-17 17:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/681) `maayan080:fix/win-findfiles-reparse-points` → `main` · +0 −157 · 6 files · 2 commits · merged 2026-09-20 14:50 UTC The recursive `File::FindFiles` API has no production callers. Remove it, the Windows and Linux `SysFileFindFiles` implementations, and their result types. Remove the test assertions that exercise the deleted API. Validation: repository-wide reference checks and `git diff --check` pass. Build and runtime tests have not been run for this update; local testing is pending.
SysFileFindFiles recurses into every entry carrying
FILE_ATTRIBUTE_DIRECTORY, which on Windows includes directory symlinks
and junctions. A junction pointing at one of its own ancestors makes the
walk recurse until the stack runs out.

The Linux implementation already guards against this: it uses lstat
rather than stat specifically so a symlink is never followed into a
cycle. Skip reparse-point entries on Windows for the same reason.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:29:22 +00:00
github manually merged commit eead6d7b7f into gh-pr/681/base 2026-11-26 09:29:26 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-17 17:24 UTC · original · edited 2026-09-20 14:51 UTC

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 31dde32e-c3e7-4eb2-a99e-2d0eccadcd63

📥 Commits

Reviewing files that changed from the base of the PR and between 16ca08e8b9 and eead6d7b7f.

📒 Files selected for processing (6)
  • src/common/file.cpp
  • src/common/file.h
  • src/common/platform/sysFileIO.h
  • src/common/platform/sysLinuxFileIO.cpp
  • src/common/platform/sysWindowsFileIO.cpp
  • tests/KernelFileSystemTests.cpp
💤 Files with no reviewable changes (6)
  • src/common/platform/sysFileIO.h
  • src/common/file.cpp
  • src/common/platform/sysLinuxFileIO.cpp
  • src/common/platform/sysWindowsFileIO.cpp
  • tests/KernelFileSystemTests.cpp
  • src/common/file.h

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The recursive SysFileFindFiles and File::FindFiles APIs were removed. Their metadata structures and Linux and Windows implementations were also removed. Unicode tests for recursive file enumeration were removed. Direct directory-entry and guest-path checks remain.

Priority: ⬇️ Low

Change: Other

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description accurately summarizes removal of the unused recursive file-enumeration APIs, implementations, result types, and related tests. It also states the current validation status.
Title check ✅ Passed The title clearly and concisely identifies the main changeset: removal of unused recursive file enumeration.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-17 17:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/681#issuecomment-5718524597) · edited 2026-09-20 14:51 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/681#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/681#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `31dde32e-c3e7-4eb2-a99e-2d0eccadcd63` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 16ca08e8b935b6cd0f3169c419490c87d1a8535e and eead6d7b7fdf356781e4bec28c85226feb7f3744. </details> <details> <summary>📒 Files selected for processing (6)</summary> * `src/common/file.cpp` * `src/common/file.h` * `src/common/platform/sysFileIO.h` * `src/common/platform/sysLinuxFileIO.cpp` * `src/common/platform/sysWindowsFileIO.cpp` * `tests/KernelFileSystemTests.cpp` </details> <details> <summary>💤 Files with no reviewable changes (6)</summary> * src/common/platform/sysFileIO.h * src/common/file.cpp * src/common/platform/sysLinuxFileIO.cpp * src/common/platform/sysWindowsFileIO.cpp * tests/KernelFileSystemTests.cpp * src/common/file.h </details> **Included review availability:** Your plan provides up to 10 included reviews per hour; 9 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The recursive `SysFileFindFiles` and `File::FindFiles` APIs were removed. Their metadata structures and Linux and Windows implementations were also removed. Unicode tests for recursive file enumeration were removed. Direct directory-entry and guest-path checks remain. </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"eead6d7b7fdf356781e4bec28c85226feb7f3744" --> **Change:** Other <!-- change_assessment_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :----------------: | :--------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Description check | ✅ Passed | The description accurately summarizes removal of the unused recursive file-enumeration APIs, implementations, result types, and related tests. It also states the current validation status. | | Title check | ✅ Passed | The title clearly and concisely identifies the main changeset: removal of unused recursive file enumeration. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.