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
Error Creating And Saving To Subfolder #39
Comments
Are you able to use Disk on your device in other scenarios? Are you sure |
Yes, I use Disk all over the app (thank you btw), and I use the exact same code with the exact same test files in the simulator, and it works perfectly every time. |
Turns out I was unaware that Apple reserves From the documentation:
When I changed the path to Sorry for the trouble, but thank you for taking the time, and for making a great framework! |
I'm getting a permissions error when trying to save data to a subfolder that is created as part of the save.
Here's the code where I'm trying to save the data:
When I run this on the simulator, it works just fine. However, when I run it on a device, I get this response:
I tracked it down, and the error is bubbling up from
Disk+InternalHelpers.swift::188
. That line callscreateDirectory(at:withIntermediateDirectories:attributes:)
, which is throwing the error. The really weird thing is that "PDF" is supposed to be a subfolder of "Inbox", not a file inside it.Here's the value for the
subfolderUrl
variable:file:///var/mobile/Containers/Data/Application/AC2C2E56-8188-426A-8C59-E508B56C7954/Documents/Inbox/PDF/
Am I doing something wrong here? Why would this work in the simulator, but throw on a device?
The text was updated successfully, but these errors were encountered: