You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a successfull download, my files are not created in des directory, so i changed this :
let documentsPath: AnyObject = NSSearchPathForDirectoriesInDomains(.DocumentDirectory,.UserDomainMask,true)[0]
let des = NSURL(string: documentsPath.stringByAppendingString("/file.pdf"))!
By this :
let fileManager = NSFileManager.defaultManager()
let documentsPath: NSURL = fileManager.URLsForDirectory(.DocumentDirectory,inDomains: .UserDomainMask)[0] as NSURL
let des = documentsPath.URLByAppendingPathComponent("/file.pdf")
And everytings worked perfectly.
The text was updated successfully, but these errors were encountered:
Ok my previous post was not correct at 100%. The bug appear when you set des folder in another not yet created folder, example :
let des = NSURL(string: documentsPath.stringByAppendingString("/subfolder/file.pdf"))!
After a successfull download, my files are not created in des directory, so i changed this :
By this :
And everytings worked perfectly.
The text was updated successfully, but these errors were encountered: