/ Published in: Other
Get Documents directory path in Swift
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
func getDocsDir() -> String { let dirPaths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true) let docsDir = dirPaths[0] as! String return docsDir }