[Mediawiki-l] Save mode and File uploading

Rowan Collins rowan.collins at gmail.com
Fri Dec 3 05:05:09 UTC 2004


On Thu, 2 Dec 2004 20:22:07 -0800, Brion Vibber <brion at pobox.com> wrote:
> The first digit of the two-digit subdirs is always the parent dir's
> digit.
> 
> > What about images/thumb directory? Do I need to create 0/00-f/ff
> > subdirectories under it as well?
> 
> Oh yeah, make that:
> 256*4 + 16*4 + 3 = 1091

D'oh! In that case:
$ cd /path/to/your/wiki/images
$ mkdir archive temp thumb
$ perl -e '@hex=("0".."9", "a".."f"); for $pre ("", "archive/",
"temp/", "thumb/") { for $w (@hex) { mkdir("$pre$w"); for $x (@hex) {
mkdir("$pre$w/$w$x") } } }'

I know it's probably useless to you anyway, but I'm a bit of a perfectionist. :/

-- 
Rowan Collins BSc
[IMSoP]



More information about the MediaWiki-l mailing list