public function setSavePath($savePath)
    {
        if (!is_dir($savePath)) {
            throw VCardException::outputDirectoryNotExists();
        }

        // Add trailing directory separator the save path
        if (substr($savePath, -1) != DIRECTORY_SEPARATOR) {
            $savePath .= DIRECTORY_SEPARATOR;
        }

        $this->savePath = $savePath;
    }
public function setSavePath($savePath)
    {
        if (!is_dir($savePath)) {
            throw VCardException::outputDirectoryNotExists();
        }

        // Add trailing directory separator the save path
        if (substr($savePath, -1) != DIRECTORY_SEPARATOR) {
            $savePath .= DIRECTORY_SEPARATOR;
        }

        $this->savePath = $savePath;
    }
public function setSavePath ( $ savePath ) { if ( ! is_dir ( $ savePath ) ) { throw VCardException :: outputDirectoryNotExists ( ) ; } // Add trailing directory separator the save path if ( substr ( $ savePath , - 1 ) != DIRECTORY_SEPARATOR ) { $ savePath .= DIRECTORY_SEPARATOR ; } $ this -> savePath = $ savePath ; }
Set the save path directory

@param  string $savePath Save Path
@throws VCardException
Set the save path directory