On Thu, 2 Dec 2004 20:22:07 -0800, Brion Vibber <brion(a)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]