<p>When I try to copy some files in an existing directory with a wildcard, I receive the error:</p>

<pre><code>kubectl cp localdir/* my-namespace/my-pod:/remote-dir/
error: one of src or dest must be a remote file specification
</code></pre>

<p>It looks like wildcards support have been removed but I have many files to copy and my remote dir is not empty so I can't use the recursive.</p>

<p>How can I run a similar operation?</p>

<p>As a workaround you can use:</p>
<pre><code>find localdir/* | xargs -I{} kubectl cp {} my-namespace/my-pod:/remote-dir/
</code></pre>
<p>In find you can use a wildcard to specify files you are looking for and it will copy it to the pod.</p>
