Implements the setstat operation.
Perform the operation. The hash parameter is a hash of attributes that should be set on the file or directory indicated by the path.
[Validate]