code: function (file) {
      return new File({
        pattern: this.pattern,
        recurse: this.recurse,
        dirname: file.dirname,
        segment: file.segment,
        path: file.path
      });
    }
docs: Create a file object with properties that will be used
  by middleware.
  
  @param  {String} `file`
  @return {Object}