List a remote directory on windows
<p>I try to do a python script which among other things copies the files from a remote windows machine (shared directory) to another place.</p>

<p>In order to list i tried </p>

<pre><code>import os
os.listdir("\\MachineX\Projects\EFP\INT\VPM\.")
</code></pre>

<p>but does not work.</p>

<p>WindowsError: [Error 3] The system cannot find the path specified: '</p>

<p>As well I tried :</p>

<pre><code>for dirname, dirnames, filenames in os.walk('\\MachineX\Projects\EFP\INT\VPM\.'):
    # print path to all subdirectories first.
    for subdirname in dirnames:
        print os.path.join(dirname, subdirname)

    # print path to all filenames.
    for filename in filenames:
        print os.path.join(dirname, filename)
</code></pre>

<p>this one does not return anything...</p>

<p>Any idea is welcome.</p>

<p>Thanks</p>
