title: How to read specific files from a directory based on a file name in spark?
body: <p>I have a directory of CSV files. The files are named based on date similar to the image below:</p>
  
  <p><a href="https://i.stack.imgur.com/wfUBf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfUBf.png" alt="enter image description here"></a></p>
  
  <p>I have many CSV files that go back to 2012. </p>
  
  <p>So, I would like to read the CSV files that correspond to a certain date only. How is that could be possible in spark? In other words, I don't want my spark engine to bother and read all CSV files because my data is huge (TBs).</p>
  
  <p>Any help is much appreciated!</p>