Gulp copy list of folders with contents
<p>I would like to copy a list of folders to a destination with gulp</p>

<p>So far i've come up with a working solution, but its far from performant.</p>

<p>The structure of my directory is like this:</p>

<ul>
<li>App

<ul>
<li>src</li>
<li>web</li>
<li>some files...</li>
</ul></li>
</ul>

<p>and i would like to copy it to </p>

<ul>
<li>build

<ul>
<li>src</li>
<li>web</li>
<li>the files</li>
</ul></li>
</ul>

<p>The code i am using to accomplish this is:</p>

<pre><code>var paths = [path.app + '/src/', path.app + '/app/'].concat(path.assets);

paths.forEach(function(value, index){
    // value.replace(path.app, path.build);

    gulp.src(value + '/**/*')
        .pipe(gulp.dest(value.replace(path.app, path.build)));
});
</code></pre>

<p>Where the assets are my files (or other directories)
However there is a loop and no clear return value. I am wondering if there is a more performant way of doing this</p>