我有这个代码来创建一个文件夹,在创建它之前我想检查这个文件夹是否已经存在!
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$client = Zend_Gdata_AuthSub::getHttpClient($_SESSION['cal_token']);
$docs = new Zend_Gdata_Docs($client);
$docs->createFolder('My Folder');
我想要类似的东西
if($docs->isFolder('My Folder')) {
//do something
}