zip error - Nothing to do
<p>I try to zip all folders in given directory. So I wrote this</p>

<pre><code>find /home/user/rep/tests/data/archive/* -maxdepth 0 -type d -exec zip -r "{}" \;
</code></pre>

<p>but got</p>

<pre><code>zip error: Nothing to do! (/home/user/rep/tests/data/archive/tmp.zip)

zip error: Nothing to do! (/home/user/rep/tests/data/archive/tmp_dkjg.zip)
</code></pre>

<p>here is what this contains</p>

<pre><code>user@machine:~$ ls /home/aliashenko/rep/tests/data/archive/
tmp  tmp_dkjg  tmp_dsf
</code></pre>