how to get the subdirectory paths into an array
Posted: Sun Oct 18, 2009 8:29 am
i have a directory called 'images' and there are subdirectories like 'images/dir1/end/' , 'images/dir2/' and 'images/dir5/dir65/dr/'
Now i'd like to get the pathnames into an array only for these deepest subdirectories that are under the images directory.
So I only want pathnames for these 'images/dir1/end/' , 'images/dir2/' and 'images/dir5/dir65/dr/', not the ones like 'images' or 'images/dir5' or 'images/dir5/dir65'.
Any easy solutions for this?
Thanks a lot.
Now i'd like to get the pathnames into an array only for these deepest subdirectories that are under the images directory.
So I only want pathnames for these 'images/dir1/end/' , 'images/dir2/' and 'images/dir5/dir65/dr/', not the ones like 'images' or 'images/dir5' or 'images/dir5/dir65'.
Any easy solutions for this?
Thanks a lot.