Php Zend gData检查文件夹是否存在(谷歌文档)

Php Zend gData检查文件夹是否存在(谷歌文档),php,zend-framework,google-docs,gdata,Php,Zend Framework,Google Docs,Gdata,我有创建文件夹的代码, 在创建它之前,我想检查一下这个文件夹是否已经存在 $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->

我有创建文件夹的代码, 在创建它之前,我想检查一下这个文件夹是否已经存在

$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
}

谷歌文档中的文件夹由一个带有scheme
http://schemas.google.com/g/2005#kind
和术语
http://schemas.google.com/docs/2007#folder

<category scheme="http://schemas.google.com/g/2005#kind"
          term="http://schemas.google.com/docs/2007#folder"/>


您可以通过调用
getCategory()
列出条目的所有类别并查找类似于上面的类别来检查条目是否为文件夹。

我的印象是,没有人知道Gdata如何处理Stackoverflow:(