code: function getFiles(res, pattern, options) {
    var files = res.split(/\r?\n/).filter(Boolean);
    if (files.length === 1 && files[0] === pattern) {
      files = [];
    } else if (options.realpath === true || options.follow === true) {
      files = toAbsolute(files, options);
    }
    if (files.length === 0) {
      if (options.nullglob === true) {
        return [pattern];
      }
      if (options.failglob === true) {
        return new Error('no matches:' + pattern);
      }
    }
  
    return files.filter(function(filepath) {
      return filepath !== '.' && filepath !== '..';
    });
  }
docs: Handle files to ensure the correct value is returned based on options