Sets the attribute to contain the given attr_value, if possible.
attribute
attr_value
a FileInfo.
a file attribute key.
a Object.