Does the document directory is removed automatically in iOS apps?
ios, swift
Solution
When the user uninstalls the app, the entire sandbox is wiped clean. If the user installs the app again, your app will need to recreate the folder structure again.
Problem
I've a simple question to the document directory. I build the folder by the following Swift statement: ``` open static let DOC_FOLDER : String = try! FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false).path ``` I store some files and create subfolders there. And now I'm not sure whether the whole folder structure is deleted automatically if I uninstall the app or does the directory still exists and is only not accessible?