public function getPath(string $conversionName = ''): string
    {
        if (!$this->hasFile()) {
            throw  new Exception('Error getting path for media with no file');
        }

        $path = $this->getFile()->getPath();

        if ($conversionName) {
            $path = $this->getBasePath()
                . DIRECTORY_SEPARATOR . $conversionName
                . DIRECTORY_SEPARATOR . $this->getName();
        }

        return $path;
    }