Is there a move_attachment_file() function in wordpress?

The problem is that even if there was such a function (I am not aware of one) all older links to those files would need to be updated as well. As links, src of images,… in the content of posts aren’t linked to the attachments in the DB but just HTML in the posts content this is pretty complicated to achieve.