title: How to copy file to path that contains ampersand '&' using Python's shutil?
body: <p>I am complete newbie in Python and have to modify existing Python script. The script copies file to other path like following:</p>
  
  <p><code>err=shutil.copyfile(src, dst)</code></p>
  
  <p>This works unless <code>dst</code> contains character like <code>&amp;</code>:</p>
  
  <p><code>dst = "Y:\R&amp;D\myfile.txt"</code></p>
  
  <p>In this case I get windows error popup that says </p>
  
  <pre><code>Open file or Read file error
  Y:\R
  </code></pre>
  
  <p>I tried to escape &amp; using back slash, double back slash and wrapping the string with additional quotes: <code>dst = "\"Y:\R&amp;D\myfile.txt\""</code>.
  Nothing works in last case I get "invalid path" error message from <code>shutil</code>.</p>
  
  <p>How can I solve this problem?</p>