title: Retrieving contents from a directory on a network drive (windows)
body: <p>I'm have an issue about displaying the files from a network drive on Windows.</p>
  <pre><code>path = &quot;\\\\nexus\\File Server\\Technical\\MyDrive\\Software\\Releases\\%s\\%s\\&quot; %(release, module)
  </code></pre>
  <p>where <code>\\nexus\</code> is a network drive.</p>
  <p>My main issue is given that a user enters correct variables, i'm unable to show the contents of the directory requested (the contents of 'module').</p>
  <h2>Things I've tried</h2>
  <ol>
  <li><p><code>os.listdir(path)</code><br />
  The issue with the line above is that it returns a windows error [123] which is, a can not find directory error. This is because listdir() seems to double all the back slashes
  resulting in :</p>
  <pre><code> &quot;\\\\\\\\nexus\\File Server\\\\Technical\\\\MyDrive\\\\Software\\\\Releases\\\\release\\\\module\\\\&quot;
  </code></pre>
  </li>
  <li><p><code>print(glob.glob(path))</code><br />
  I didn't really know exactly how it  works :P but it seems just to display the directory supplied and not the contents of the ending directory</p>
  <pre><code>  \\nexus\File Server\Technical\MyDrive\Software\Releases\release\module\&quot;
  </code></pre>
  </li>
  </ol>
  <p>I've seen an <code>os.walk</code> however im not sure how its works, in that how does it defines what is the base directory /directories and what is the rest of the path</p>
  <p>Extra notes: The contents of 'module' will always be a zip file, also the directory will generally contain at maximum five zip files.</p>