Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS/macOS] Files outside the sandbox, picked by pickFile(), can't be accessed by other library methods #28

Open
birdofpreyru opened this issue Jan 29, 2024 · 2 comments
Labels
In Progress Work in progress. P1 High priority issue.

Comments

@birdofpreyru
Copy link
Owner

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.

@birdofpreyru birdofpreyru added the P1 High priority issue. label Jan 29, 2024
@birdofpreyru birdofpreyru added the In Progress Work in progress. label Jan 29, 2024
@birdofpreyru
Copy link
Owner Author

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
Copy link
Owner Author

Since v2.27.1 «Bookmark URLs» are, presumably, supported by readDir() and readdir() methods (implemented, pending to be tested).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress Work in progress. P1 High priority issue.
Projects
None yet
Development

No branches or pull requests

1 participant