File.detach

void detach() @trusted

Detaches from the underlying file. If the sole owner, calls close.

Throws

ErrnoException on failure if closing the file.