My app needs to have a hidden/private(if possible) folder for storing audio files that the app generates itself. This audio files are used to build Database where only the App can populate and delete if needed.
The only activity that the user is able to do is exporting some of this file in a folder called "exported" into either the share folder or the iCloud.
The question is, how do I create this hidden/private folder where a User has no permissions?
lazy var documentsUrl:URL = { return fileManager.urls(for: .documentDirectory, in: .userDomainMask).first! }()
lazy var appInternalMusic:URL = { documentsUrl.appendingPathComponent(".InternalFolder") }()
try! fileManager.createDirectory(at: appInternalMusic, withIntermediateDirectories: true, attributes: nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With