public function toDirectory($directory) { $this->directory = trim($this->sanitizePath($directory), DIRECTORY_SEPARATOR); return $this; }