ErrnoException on failure if closing the file.File.detach
void detach() @trustedDetaches from the underlying file. If the sole owner, calls close.
void detach() @trustedDetaches from the underlying file. If the sole owner, calls close.
ErrnoException on failure if closing the file.