title: List all files in array with gulp.src()
body: <p>I'm trying to create an index of all file(path)s within a given folder. So far I worked with <code>gulp.src(filePath)</code> to achieve that. According to this <a href="http://jilles.me/introduction-to-gulp/" rel="noreferrer">blog post</a>, it should work:</p>
  
  <blockquote>
    <p>gulp.src(files) is a string or array containing the file(s) / file paths.</p>
  </blockquote>
  
  <p>My current code:</p>
  
  <pre class="lang-js prettyprint-override"><code>gulp.task("createFileIndex", function(){
      var index = gulp.src(['./content/**/*.*']);
      console.log("INDEX:", index[0]);
  });
  </code></pre>
  
  <p>By outputing the returned values of <code>gulp.src()</code> with <code>index[0]</code> I get <code>undefined</code> and the whole <code>index</code> outputs only a large dictionary without any filepaths.</p>