Set file properties and attributes to the provided values. Excess attributes are removed.
Basic example.