I try to call the fileManager.createFileAtPath-method, but it always fails.
My variable success is always false. I looked at some simi
Here is a problem:
if fileManager.fileExistsAtPath(String(pListPath), isDirectory: &isDir)
You cannot use String(...) to convert a NSURL to a file path string,
you have to use the path method:
if fileManager.fileExistsAtPath(pListPath.path!, isDirectory: &isDir)
If reportsPath is also an NSURL then the same problem exists at
pListPath = NSURL(fileURLWithPath: String(reportsPath)).URLByAppendingPathComponent("myReports.plist", isDirectory: false)
which should be
let pListPath = reportsPath.URLByAppendingPathComponent("myReports.plist", isDirectory: false)