Sets the metadata of type type on path to value. If value is null this clears that metadata.
Extras are not copied by copy but they are moved with atomicMove.
if path does not exist.