code: 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;
  }
docs: Create a new `File` from the given `object`.
  
  @param {Object} `object`
  @api public