public function add($path) { if (FsObject::exists($path)) { $this->_contents[] = $path; } if ($this->_size == null) { $this->_size = 0; } $this->_size += FsObject::getSize($path); }