title: listing network shares with python
body: <p>if I explicitly attempt to list the contents of a shared directory on a remote host using python on a windows machine, the operation succeeds, for example, the following snippet works fine:</p>
  
  <pre><code>os.listdir("\\\\remotehost\\share")
  </code></pre>
  
  <p>However, if I attempt to list the network drives/directories available on the remote host, python fails, an example of which is shown in the following code snippet:</p>
  
  <pre><code>os.listdir("\\\\remotehost")
  </code></pre>
  
  <p>Is anyone aware of why this doesn't work?, any help/workaround is appreciated.</p>