wget - prevent creating empty directories
<p>Is there a way to stop wget from creating empty directories?  Most of the files I need are found at one level of depth, i.e. in folder 2 of <code>/1/2/</code>, but I need to use infinite recursion because sometimes the file I need is at <code>1/2/3/</code> or deeper.  Or at least, I need infinite recursion for the time being, until I figure out the maximum depth of where the files of interest are located.</p>

<p>Right now I'm using</p>

<pre><code>wget -nH --cut-dirs=3 -rl 0 -A "*assembly*.txt" ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria
</code></pre>

<p>Which gets all the files I need, but I am left with a bunch of empty directories.  I would prefer the directory structure <code>/bacteria/organism/*assembly*.txt</code>, but if creating multiple subdirectories cannot be avoided, I want to at least stop wget from creating empty directories.  I can, of course, remove the empty directories after running wget, but I want to stop wget from creating them in the first place if possible</p>