Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I'm trying to read images that are located in all my sub-directories. For example, my main directory is faculty and then I have many sub-directories with images.
The following code work if i have all the pictures in the main directory. How can i get all the images from the subdirectories. Thank you
C#
foreach(glob("Faculty/picture*.jpg") as $image)
{
Posted

1 solution

glob("Faculty/*/picture*.jpg")
 
Share this answer
 
Comments
[no name] 28-Apr-14 0:27am    
++5
Peter Leow 28-Apr-14 1:22am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900