Thanks. We already implemented explicit reselection as a recovery path, and confirmed that it restores access after relaunch.
The concern is how frequently that recovery becomes necessary. In our tests, an ordinary external folder rename reproduces the problem on FAT32/exFAT, while the same workflow appears to work on APFS.
While the app remains running, its existing file descriptor still tracks the renamed folder. On exFAT, we traced creation of the replacement security-scoped bookmark to an open() failure with EPERM. Reselecting that same folder through the system picker allows bookmark creation and subsequent access after relaunch.
Saving the last known URL could help guide the user through recovery, but would not itself restore authorization or establish that a folder subsequently found at that path is the original resource.
We agree that bookmark failures need a recovery path. The remaining question is whether repeated reselection after ordinary renames is unavoidable under these constraints: a sandboxed app, public APIs, and authorization limited to the selected folder.
Have you encountered this specific FAT32/exFAT rename scenario, and do you know an approach that avoids repeated reselection?
Topic:
App & System Services
SubTopic:
Core OS
Tags: