public function content($ignore = null) { $raw = $this->scan($ignore); $root = $this->root; $content = new Collection(); foreach ($raw as $file) { if (is_dir($root . DS . $file)) { $content->append($file, new static($root . DS . $file)); } else { $content->append($file, new Media($root . DS . $file)); } } return $content; }