setResourceValues(_:)
Sets the resource value identified by a given resource key.
Declaration
mutating func setResourceValues(_ values: URLResourceValues) throwsMentioned in
Discussion
This method writes the new resource values out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. This method is currently applicable only to URLs for file system resources.
URLResourceValues keeps track of which of its properties have been set. Those values are the ones used by this function to determine which properties to write.