That reflects the underlying behavior of linux/unix systems (including macOS). The file handle is not invalidated when the file is moved or deleted. Read and write operations will still succeed if there are no other issues. That is consistent with the documentation.
2 Likes
Thanks for the reply. Also it seems bytes written in Darwin is non-zero for a deleted file so that exception isn't thrown either.