title: Printing File Names
body: <p>I am very new to <code>python</code> and just installed <code>Eric6</code>  I am wanting to search a folder (and all sub dirs) to print the filename of any file that has the extension of <code>.pdf</code>  I have this as my syntax, but it errors saying</p>
  
  <blockquote>
    <p>The debugged program raised the exception unhandled FileNotFoundError<br>
    "[WinError 3] The system can not find the path specified 'C:'"<br>
    File: C:\Users\pcuser\EricDocs\Test.py, Line: 6</p>
  </blockquote>
  
  <p>And this is the syntax I want to execute:</p>
  
  <pre><code>import os
  
  results = []
  testdir = "C:\Test"
  for folder in testdir:
    for f in os.listdir(folder):
      if f.endswith('.pdf'):
          results.append(f)
  
  print (results)
  </code></pre>