You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[iOS/macOS] Files outside the sandbox, picked by pickFile(), can't be accessed by other library methods #28
More precisely, in case of macOS this is true for files outside the app sandbox, for iOS it applies for files from iCloud. The problem is that current conversion of security-scoped URLs into string URLs returned by pickFile() looses the security-scope permissions.
As of v2.23.0 the issue is fixed for pickFile(), copyFile(), and exists(). Other functions, most probably, require additional fixes to correctly handle the special «Bookmark URLs» returned now by pickFile() on iOS & macOS (in the absence of these fixes other methods are not expected to crash in any dramatic way, most probably they'll just consider such URLs point to non-existing files).
Activity
[#28] iOS/macOS: Fixes the handling of security scopes by pickFile() …
birdofpreyru commentedon Jan 29, 2024
As of v2.23.0 the issue is fixed for pickFile(), copyFile(), and exists(). Other functions, most probably, require additional fixes to correctly handle the special «Bookmark URLs» returned now by pickFile() on iOS & macOS (in the absence of these fixes other methods are not expected to crash in any dramatic way, most probably they'll just consider such URLs point to non-existing files).
birdofpreyru commentedon Jun 15, 2024
Since v2.27.1 «Bookmark URLs» are, presumably, supported by readDir() and readdir() methods (implemented, pending to be tested).