title: Python 3: accessing windows share under Linux by UNC path
body: <p>First, lets ensure that windows share is accesable:</p>
  
  <pre><code>$ sudo mkdir /mnt/test
  </code></pre>
  
  <p>Let's try mount, but it's fail:</p>
  
  <pre><code>$ sudo mount -t cifs //192.168.0.10/work /mnt/test
  mount: wrong fs type, bad option, bad superblock on //192.168.0.10/work,
     missing codepage or helper program, or other error
     (for several filesystems (e.g. nfs, cifs) you might
     need a /sbin/mount.&lt;type&gt; helper program)
  
     In some cases useful info is found in syslog - try
     dmesg | tail or so.
  </code></pre>
  
  <p>But if provide dummy user/pass (i.e. point exactly 'USERNAME' and 'PASSWD'), mount success:</p>
  
  <pre><code>$ sudo mount -t cifs -o username=USERNAME,password=PASSWD //192.168.0.10/work /mnt/test
  $ ls /mnt/test/*.txt
  /mnt/test/1.txt
  $ umount test
  </code></pre>
  
  <p>Now lets try python:</p>
  
  <pre><code>$ python -V
  Python 3.5.2+
  $ python
  &gt;&gt;&gt; import os
  &gt;&gt;&gt; os.listdir(r'//192.168.0.10/work')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  FileNotFoundError: [Errno 2] No such file or directory: '//192.168.0.10/work'
  </code></pre>
  
  <p>I'm trying four slashes, backslashes, combine it, with or without <code>r</code>, unicode escaping (<code>bytes(path, "utf-8").decode("unicode_escape")</code>), all this fail with <code>No such file or directory</code>. May be reason of this fail is user/pass, but I have no imagine how add it to UNC.</p>
  
  <p>ps. Also I try <code>pysmb</code> library, it's work fine without user/pass. But I dont want using additional lib if it possible.</p>