index.js
function (file) {
    return new File({
      pattern: this.pattern,
      recurse: this.recurse,
      dirname: file.dirname,
      segment: file.segment,
      path: file.path
    });
  }
function (file) {
    return new File({
      pattern: this.pattern,
      recurse: this.recurse,
      dirname: file.dirname,
      segment: file.segment,
      path: file.path
    });
  }
function ( file ) { return new File ( { pattern : this . pattern , recurse : this . recurse , dirname : file . dirname , segment : file . segment , path : file . path } ) ; }
Create a file object with properties that will be used
by middleware.

@param  {String} `file`
@return {Object}
Create a file object with properties that will be used by middleware .