title: Changing output directories/files to lowercase in Gulp
body: <p>I'm using Gulp to automatically copy/bundle/compile my files, I basically copy the entire folder structure from the base folder (MyProject/Scripts) to wwwroot/js.</p>
  
  <p>In the process of copying/processing I want to rename the output path/filenames to lowercase. I found the ChangeCase-module and the Rename-module but I can't get it to work in my setup below.</p>
  
  <pre><code>gulp.task("compile:less", function () {
      return gulp.src(paths.lessSrc)
          .pipe(less())
          //how can I get to currentdirectory so I can use it for the rename? maybe there is another way
          //.pipe(rename({ dirname: changeCase.lowerCase(??currentdir??) }))
          .pipe(gulp.dest(paths.cssTarget));
  });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>gulp.task("compile:js", function () {
      return gulp.src(paths.jsOrigin)
          //simple copy of folders and files but how to rename all to lowercase?
          .pipe(gulp.dest(paths.jsTarget));
  });
  </code></pre>