Magento’s Scriptaculous Folder Went Missing After An Upgrade

All the following Scriptaculous JavaScript files from Magento’s JS library disappeared after I performed an upgrade of a Magento eCommerce website. I figured that the updater must done something naughty by deleting the folder to replace it with a newer version, but must have failed to extract the new files.

js/scriptaculous/builder.js
js/scriptaculous/effects.js
js/scriptaculous/dragdrop.js
js/scriptaculous/controls.js
js/scriptaculous/slider.js

I noticed the problem when Chrome’s Inspect Element flagged up the following files returning a 404 Page Not Found error.

The solution was to just download a fresh copy of Magento (http://www.magentocommerce.com/download) and restore the js/scriptaculous/ folder.