title: Connecting to a remote server using Python
body: <p>I am trying to print the contents of a folder in a remote server. The code I have used is:</p>
  
  <pre><code>srcserver = 'abc.com'
  dyndir = '\\\\%s\\E$\\Backup\\' %(srcserver)
  ls = glob.glob('%s*' %dyndir)
  print ls
  </code></pre>
  
  <p>When I try this, it returns an empty array. Could you please help me resolve this issue.</p>