title: Retrieving list of files in a directory with a full path in Python Paramiko
body: <p>I have this code working with local files:</p>
  
  <pre><code>path = r'/localhost_path/'
  
  for filename in os.listdir(path):
      subpath = os.path.join(path, filename)
      if subpath.endswith('.txt'):
          print("TXT")
  </code></pre>
  
  <p>I was trying to replace it with SFTP with Paramiko, but it didn't work.
  Paramiko doesn't have a <code>.join</code> option – how to solve this?</p>