-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 path usage with FileManager.default.urls #1128
Comments
We could was also build behavior to convert |
There's a simpler solution, +FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].absoluteString.removePrefix("file:https://")
-FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].path |
I've got a wrapper aound
FileSystem
as I want to support other systems (mainly Amazon S3) as well:On Android, I do:
On iOS, I do:
The problem with iOS is though that:
returns
Which isn't handled. When trying to write a file I get an error message saying that the file system is read only.
The fix is:
Is
Path
just not handlingfile:https://
prefix correctly? Should it be lenient and automatically remove the prefix or is it a valid case to distinguish between/Users/niklas/
andfile:https:///Users/niklas/
?The text was updated successfully, but these errors were encountered: