public function SanitizePath() { $sanitized = str_replace(" ", "_", $this->path); return preg_replace('/[^\\w-]/', '', $sanitized); }