This file does not exist in 10 anymore. Please make sure to delete all code files (apart from config and data) before uploading the new files.
See https://docs.nextcloud.com/server/9/admin_manual/maintenance/manual_upgrade.html, especially step 4 and 5