Okay,
So I have a Cydia app that I need to update. I am aware with Cydia apps that they don\'t have a Documents folder, so you have to make one. And here\'s how I ma
In Swift, returns true if exists or created.
func ensureDirectoryExists(path:String) -> Bool {
if !NSFileManager.defaultManager().fileExistsAtPath(path) {
do {
try NSFileManager.defaultManager().createDirectoryAtPath(path, withIntermediateDirectories: true, attributes: nil)
} catch {
print(error)
return false
}
}
return true
}