Helper/File.php
public function getFilePathWithFallback($filename)
    {
        $emailPath = $this->getOutputFolder() . DIRECTORY_SEPARATOR . $filename;
        $archivePath = $this->getArchiveFolder() . DIRECTORY_SEPARATOR . $filename;
        return is_file($emailPath) ? $emailPath : $archivePath;
    }
public function getFilePathWithFallback($filename)
    {
        $emailPath = $this->getOutputFolder() . DIRECTORY_SEPARATOR . $filename;
        $archivePath = $this->getArchiveFolder() . DIRECTORY_SEPARATOR . $filename;
        return is_file($emailPath) ? $emailPath : $archivePath;
    }
public function getFilePathWithFallback ( $ filename ) { $ emailPath = $ this -> getOutputFolder ( ) . DIRECTORY_SEPARATOR . $ filename ; $ archivePath = $ this -> getArchiveFolder ( ) . DIRECTORY_SEPARATOR . $ filename ; return is_file ( $ emailPath ) ? $ emailPath : $ archivePath ; }
Return the full file path with checking in archive as fallback.

@param string $filename
@return string
Return the full file path with checking in archive as fallback .