note
synapse0
recursive loop...<BR>
<br>
<psuedo-code>
<code>
sub rename_dir {
$curdir = shift;
opendir($curdir)
foreach $dir(readdir($curdir)) {
next unless $dir is directory;
&rename_dir($dir); # recurse
rename($dir);
}
closedir(current dir)
}
</code>
</psuedo-code><BR>
something to that effect should work, i can't create a test run here, but i think the basics should be in that example..<BR>
basically this follows the dir tree to the end, and then rename directories as it comes out of the loop.<BR>
-Syn0
98696
98696