So i'm working on a app which uses FileManagers DocumentDirectory to store PDFs, and im also storing a ref in core data, ive noticed after a couple days the file gets deleted and i cant reference it from the FileManager,
This is the file reference from coredata that ive stored:
file:///var/mobile/Containers/Data/Application/FD3B6B76-3A04-4F9C-AC64-557F91CAF53A/Documents/PhotoStat/Test/Personal.pdf
This is the files currently stored in FileManager's Document directory when using the contentsOfDirectory function:
[file:///private/var/mobile/Containers/Data/Application/FB39D72B-A1C7-4BC7-B2F5-8AB565DC808F/Documents/PhotoStat/Test/, file:///private/var/mobile/Containers/Data/Application/FB39D72B-A1C7-4BC7-B2F5-8AB565DC808F/Documents/PhotoStat/Server.pdf]
the file is just not there, even though im not uninstalling the app,F.Y.I this is being currently tested on a physical device not a simulator,
every where i check it says that files dont get deleted, it only happens when you uninstal, but im still facing this issue.
Any help would be appreciated :)