Copy function call changed to Filesystem::rename