File.opAssign

File opAssign(File rhs) ref @safe return

Assigns a file to another. The target of the assignment gets detached from whatever file it was attached to, and attaches itself to the new file.