Skip to content

fix(ios): use resolved bookmark paths for file operations - #151

Open
OskarEichler wants to merge 1 commit into
birdofpreyru:masterfrom
OskarEichler:codex/rnfs-apple-files
Open

fix(ios): use resolved bookmark paths for file operations#151
OskarEichler wants to merge 1 commit into
birdofpreyru:masterfrom
OskarEichler:codex/rnfs-apple-files

Conversation

@OskarEichler

@OskarEichler OskarEichler commented Aug 27, 2026

Copy link
Copy Markdown

Fixes

Use resolved bookmark URLs/paths when reading, appending, moving and unlinking; report data-read failures; close read/append handles before settling; query the documented NSURL directory resource key.

Compatibility / breaking changes

No signature changes. Operations on security-scoped bookmark strings now use their resolved file, rather than treating the bookmark as a filesystem path. Unreadable files reject instead of resolving nil. The resource-key adjustment is not claimed to fix a reproduced macOS directory failure: the old key worked in that diagnostic.

Verification

Actual Objective-C methods and pathToUrl against real Foundation bookmark data and temporary files: normal paths, bookmark reads/appends/moves/unlinks, partial reads and directory rejection. Four failing baseline bookmark operations -> zero. Actual iOS Simulator SDK compilation passes; sandboxed document-provider permissions were not exercised.

Shared verification

yarn test (ESLint + TypeScript), yarn prepare (module/declarations), and git diff --check pass for the combined review checkout. React Doctor reports 100/100 for the changed JS scope. Native checks are described above; no physical-device, signed-release or production verification is claimed. No checked-in test/spec files were changed. Isolated diagnostics were run outside the repository. Consumer verification at immutable combined pin eb4ee67 (RN 0.87.1): immutable install and lint, both Android Debug flavors, both iOS Simulator Debug schemes, four release-mode Metro bundles, 13 production web builds and four browser-extension builds pass. All 72 installed non-metadata files match reviewed source/rebuilt artifacts. Windows SDK/runtime remains unverified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant