lib/file.js
function File(file) {
  this.cache = new Map();
  this.history = [];
  this.pattern = file.pattern;
  this.recurse = file.recurse;
  this.dirname = file.dirname;
  this.segment = file.segment;
  this.path = file.path;
  this.orig = file.path;
}
function File(file) {
  this.cache = new Map();
  this.history = [];
  this.pattern = file.pattern;
  this.recurse = file.recurse;
  this.dirname = file.dirname;
  this.segment = file.segment;
  this.path = file.path;
  this.orig = file.path;
}
function File ( file ) { this . cache = new Map ( ) ; this . history = [ ] ; this . pattern = file . pattern ; this . recurse = file . recurse ; this . dirname = file . dirname ; this . segment = file . segment ; this . path = file . path ; this . orig = file . path ; }
Create a new `File` from the given `object`.

@param {Object} `object`
@api public
Create a new File from the given object .