public function exclude($exclude) { $this->pathHelper->chdirToBase(); $this->pathHelper->validatePath($exclude); $this->excludes[] = realpath($exclude); $this->pathHelper->chdirBack(); }