Page 1 of 1

Subdir?

Posted: Fri Feb 28, 2003 1:16 am
by mleskine
Hi, is there a function to check if some directory HAS subdirs? I have directories in an array and running through them foreach. So if anyone has done this someway, any clues would be nice.
thanks.

-M-

Posted: Fri Feb 28, 2003 2:10 am
by bionicdonkey
you could check through all the objects in the directory and use is_dir() in an if statement to find if any of them are diretories