Platonides wrote:
Either move them all from /images/1/15/image.ext to /images/image.ext and set to false $wgHashedUploadDirectory (easy) or move them the other way, for which you will probably need a script. The subfolder pattern is /images/a/ab/ where ab are the first 2 characters of the filename's md5.
Thanks, but I've already read the manual page about Image Administration [1], which explains this pretty well. On the mentioned page Special:Files, I can look up the locations, where MediaWiki looks for the images, so I wouldn't have to calculate hash values for every file. However, manually moving a few hundred images this way would take several hours, and it'd be a very stupid pastime.
Thus, my idea was to utilize the importImages.php script, which should do all this by itself; I could point it to ./images and let it create the subdirectories, and sort the images to the proper hash directories. The only problem is, that wouldn't let me do this, since it thinks, that the file are already present, but at the location they would be, if $wgHashedUploadDirectory would be set to false. The script simply lacks a switch to avoid checking for existing images, or someone who understands the basics of PHP programming.
So the question was simply, how to bypass the do-the-files-exist-checking in importImages.php; this should be very simple since the script is quite well documented, but it takes some understanding of PHP, what most stupidly I don't have.
Sorry if my question was unclear.
Greetings, -asb