file-ownership-preserved-p

file-ownership-preserved-p is a compiled Lisp function in `files.el'.

(file-ownership-preserved-p FILE &optional GROUP)

Return t if deleting FILE and rewriting it would preserve the owner.
Return nil if FILE does not exist, or if deleting and recreating it
might not preserve the owner. If GROUP is non-nil, check whether
the group would be preserved too.