fix(agc): ignore Finder .DS_Store files in capture directories #7728
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7728"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T03:16:41Z.
What
Follow-up to #6259. On macOS, Finder writes a
.DS_Storefile into any folder it shows, so opening the compute capture directory in Finder made the next new capture fail withcapture directory contains an unexpected entry. WithWriteOptionalthat error is not swallowed, so it reaches the caller like any other invalid directory. The author of #6259 confirmed it and asked for a separate PR (https://github.com/boykopovar/AnyPS5/pull/6259#issuecomment-6200985478).The scan shared by
WriteandWriteOptionalnow skips an entry only when it is a regular file named exactly.DS_Store. Skipped entries do not count toward the 128-entry or 256 MiB bounds. Everything else is unchanged: other files (including other dot-files), a symbolic link named.DS_Storeand a directory named.DS_Storeare still rejected, so--optional-invalidkeeps failing on a foreign entry as before.The
--optional-invalidcase now writes a.DS_Storeinto a fresh capture directory, checks thatWriteandWriteOptionalboth add a record and leave the file alone, then adds the existingforeignfile and checks thatWrite(with its diagnostic) andWriteOptionalstill reject the directory.Tested
macOS 27.2 on an Apple M2 Max, Xcode 27.0 (Apple clang 21.0.0, libc++). Base:
mainfd423f9b2(this heada51bb03ccmerges cleanly onto it). libSceAgcDriver does not build on macOS yet, so I builttests/ComputePipelineCapture.cppstandalone withExecution/src/ComputePipelineCapture.cpp(-std=c++20 -O2, Vulkan SDK 1.4.363 headers), for-arch arm64and-arch x86_64(run under Rosetta). Every mode: default,--optional-entry-cap,--optional-byte-cap,--optional-io,--optional-invalid.main:--optional-invalidfails withcapture directory contains an unexpected entryon both architectures; the other four modes pass.main, scan from this branch: 5/5 pass on both architectures (theforeignentry is still rejected).Not run: the CTest targets on Linux or Windows (full build).
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T22:26:28Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/Execution/src/ComputePipelineCapture.cppcore/libs/prx/libSceAgcDriver/tests/ComputePipelineCapture.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T01:15:54Z.
Checked the scan change: only a regular file named exactly
.DS_Storeis skipped and it does not count toward the 128-entry or 256 MiB bounds; symlinks, directories and other files are still rejected. The new test fails without the change (strictWritewould reject the file) and still rejectsforeign; merged.