Having trouble figuring out how to make the following call in swift:
var anyError: NSError? = nil var rsrc: NSNumber? = nil var success = url.getResourceValue(&a
in swift 3 previous calls are not available/deprecated:
so use:
var keys = Set() keys.insert(URLResourceKey.isDirectoryKey) do{ let URLResourceValues = try fileURL.resourceValues(forKeys: keys) }catch _{ }