fix(fs): accept absolute paths in the iOS security-scope commands (#3628)

In plugins/fs/src/commands.rs, start/stop_accessing_security_scoped_resource
only handled SafeFilePath::Url, so a plain path was a silent no-op
although the JS docs say "path or file:// URL" (and
Fs::stop_accessing_security_scoped_resource accepts paths).

Absolute paths are now converted to file:// URLs first; relative paths keep
being ignored. iOS-only code: formatted but not compiled here (the iOS
tauri build script fails in this environment).
This commit is contained in:
Lucas Fernandes Nogueira authored and GitHub committed 2026-10-09 13:25:05 -03:00
1 parent 3a9000177c
commit e03dca60e7
2 files changed
+16 -4

No files matched your search

@@ -0,0 +1,6 @@
---
fs: patch
fs-js: patch
---
`startAccessingSecurityScopedResource` and `stopAccessingSecurityScopedResource` now accept absolute paths on iOS, as documented, instead of silently doing nothing unless given a `file://` URL.