title: Invalid file path or buffer object type: <class 'list'> when trying to loop through files
body: <p>I have the below code updated; in effort to allow my script to loop through multiple files in a directory (as opposed to one):</p>
  
  <pre><code>@classmethod
  def find_file(cls):
       all_files = list()
       """"Finds the excel file to process"""
       archive = ZipFile(config.FILE_LOCATION)
       for file in archive.filelist:
          if file.filename.__contains__('Horrible Data Site '):
               all_files.append(archive.extract(file.filename, config.UNZIP_LOCATION))
       return all_files   
  </code></pre>
  
  <p>Before declaring '<code>all files = list()</code>' above in my <code>find_files</code> method, this was working <strong>on one file</strong> in the directory. I added the <code>all_files</code> in attempt to allow loop through all files in a directory. </p>
  
  <p>Also, in the below <code>main.py</code> I just added the <code>for</code> right before <code>PENDING_RECORDS</code> for this objective.</p>
  
  <pre><code>"""Start Point"""
  
  from data.find_pending_records import FindPendingRecords
  from vital.vital_entry import VitalEntry
  from time import sleep
  
  if __name__ == "__main__":
      try: 
          for PENDING_RECORDS in FindPendingRecords().get_excel_data():
              # Do operations on PENDING_RECORDS
  
              # Reads excel to map data from excel to vital
              MAP_DATA = FindPendingRecords().get_mapping_data()
  
              # Configures Driver
              VITAL_ENTRY = VitalEntry()
  
              # Start chrome and navigate to vital website
              VITAL_ENTRY.instantiate_chrome()
  
              # Begin processing Records
              VITAL_ENTRY.process_records(PENDING_RECORDS, MAP_DATA)
  
              print (PENDING_RECORDS)
              print("All done")     
      except Exception as exc:
          print(exc)
  </code></pre>
  
  <p>The addition of adding the <code>all_files()</code> and <code>for</code> now outputs the following error in the Anaconda Prompt:</p>
  
  <pre><code>(base) C:\Python&gt;python main.py
  Invalid file path or buffer object type: &lt;class 'list'&gt;
  </code></pre>
  
  <p><strong>this is the config.py</strong></p>
  
  <pre><code>FILE_LOCATION = r"C:\Zip\DATA Docs.zip"
  UNZIP_LOCATION = r"C:\Zip\Pending"
  VITAL_URL = 'http://horriblewebsite:8080/START'
  HEADLESS = False
  PROCESSORS = 4
  MAPPING_DOC = ".//map/mappingDOC.xlsx"
  </code></pre>