title: how do I loop through a list of folders and grab a picture file in ruby
body: <p>I need ruby code where i can loop throught a list of folders and then loop through each image individually in that folder </p>
  
  <p><a href="https://i.stack.imgur.com/hJ0cU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hJ0cU.png" alt="List of folders"></a></p>
  
  <p>by grabing the pictures file and its name, </p>
  
  <p>I know Dir.foreach is great to get the folder names but how do I get the pictures</p>