title: Dockerfile: COPY / ADD with space character in path (Windows)
body: <p>In Windows 10 (cmd) I'm trying to copy a file from a subfolder containing a space character in its name.</p>
  
  <ol>
  <li><p>First I tried to use quotation marks:</p>
  
  <pre><code>FROM jfloff/alpine-python:2.7
  COPY "Folder 1/File.txt" "Dir 1"
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>failed to process <strong>"\"Folder"</strong>: unexpected end of statement while looking for matching double-quote</p>
  </blockquote></li>
  <li><p>"JSON" format (skipped the first line):</p>
  
  <pre><code>COPY ["Folder 1/File.txt" "Dir 1"]
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>failed to process <strong>"[\"Folder"</strong>: unexpected end of statement while looking for matching double-quote</p>
  </blockquote></li>
  <li><p>Trying to escape with a single backslash:</p>
  
  <pre><code>COPY "Folder\ 1/File.txt" "Dir\ 1"
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>failed to process <strong>"\"Folder\\"</strong>: unexpected end of statement while looking for matching double-quote</p>
  </blockquote></li>
  <li><p>Trying to escape with a double backslash:</p>
  
  <pre><code>COPY "Folder\\ 1/File.txt" "Dir\\ 1"
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>failed to process <strong>"\"Folder\\\\"</strong>: unexpected end of statement while looking for matching double-quote</p>
  </blockquote></li>
  <li><p>Also tried a suggestion to use <strong>%20</strong> instead of space:</p>
  
  <pre><code>COPY ["Folder%201/File.txt" "Dir%201"]
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>COPY failed: no source File</p>
  </blockquote></li>
  <li><p>Escape character replacement:</p>
  
  <pre><code># escape=`
  COPY "Folder` 1/File.txt" "Dir 1"
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>failed to process <strong>"\"Folder`"</strong>: unexpected end of statement while looking for matching double-quote</p>
  </blockquote></li>
  <li><p>The same, but without quotes:</p>
  
  <pre><code>#escape=`
  COPY Folder` 1/File.txt Dir` 1
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>COPY failed: stat /var/lib/docker/tmp/docker-builder082039614/<strong>Folder</strong>: no such file or directory</p>
  </blockquote></li>
  <li><p>Method with packing / unpacking using a <strong>tar</strong> archive (I'm not happy with that idea).</p></li>
  </ol>
  
  <p>It should be possible, shouldn't it?</p>