That's almost what I want but lists all the sub-directories below /home/www.
What I actually want is the third-level directories only i.e. the name_of_virtual_host directories only in the array, not all the directories below this level too.
My directory structure is /home/www/name_of_virtual_host/dir4/dir5/etc.
Can I use finddepth here to recurse down to the third level directories only?
WylieIn reply to Re: Re: How do I put all sub-directories into an array?
by wylie
in thread How do I put all sub-directories into an array?
by wylie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |