title: Python shutil copy to network folder OSError: [Errno 22] Invalid argument:
body: <p>I am using shutil.copy to copy a file in the remote network server</p>
  <pre><code>shutil.copy(r'ebw.json', r'\\xx.xx.xx.xx\ebw.json')
  </code></pre>
  <p>The following error i am getting</p>
  <pre><code>Traceback (most recent call last):
    File &quot;D:\ebw.py&quot;, line 93, in &lt;module&gt;
      shutil.copyfile(os.path.join(r'bwe.json'), os.path.join(r'\\xx.xx.xx.xx\ebw.json'))
    File &quot;C:\Program Files (x86)\Python38-32\lib\shutil.py&quot;, line 261, in copyfile
      with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
  OSError: [Errno 22] Invalid argument: '\\\\xx.xx.xx.xx\\ebw.json'
  </code></pre>