title: how to get the latest file from folder using python
body: <p>I have a requirement where I need to process the latest file version when there are multiple versions in a folder. When there are no multiple versions it can process all files.</p>
  <p>Example:</p>
  <pre><code>File1: ABC2021Q1.01.txt
  File2: ABC2021Q1.02.txt
  File3: ABC2021Q1.03.txt
  File4: CDE2021Q2.01.txt
  File5: CDE2021Q3.02.txt
  </code></pre>
  <p>Files to be processed:</p>
  <pre><code>
  File3: ABC2021Q1.03.txt
  File4: CDE2021Q2.01.txt
  File5: CDE2021Q3.02.txt
  </code></pre>