Re: [PHP] Traverse directory - Find empty directory

2008-02-29 Thread Holografix
Hi Thank you for answering my question Jim. I didn't notice the message get into the list because I get errors when posting and then I quit to post and try to solve the problem. Your solution is good and nice. I used scandir() instead of glob() with a recursive function. Best regards holo "Ji

Re: [PHP] Traverse directory - Find empty directory

2008-02-28 Thread Jim Lucas
Holografix wrote: Hi I'm using Spl RecursiveDirectoryIterator to traverse a directory and have no problem with it but now I'm stuck. I only need to display directories with no files in it. Can someone help with this? My current code: set_time_limit(0); $files = new RecursiveIteratorIterat

[PHP] Traverse directory - Find empty directory

2008-02-28 Thread Holografix
Hi I'm using Spl RecursiveDirectoryIterator to traverse a directory and have no problem with it but now I'm stuck. I only need to display directories with no files in it. Can someone help with this? My current code: set_time_limit(0); $files = new RecursiveIteratorIterator(new RecursiveDire