public function inventory() { if (!is_dir($this->root)) { return array(); } return $this->inventory = is_null($this->inventory) ? scandir($this->root) : $this->inventory; }