Fix opendir for folders aka Google Docs collections
This commit is contained in:
parent
f040ce044c
commit
baffa03fa5
|
@ -136,8 +136,7 @@ class OC_Filestorage_Google extends OC_Filestorage_Common {
|
||||||
$next = 'https://docs.google.com/feeds/default/private/full/folder%3Aroot/contents';
|
$next = 'https://docs.google.com/feeds/default/private/full/folder%3Aroot/contents';
|
||||||
} else {
|
} else {
|
||||||
if ($entry = $this->getResource($path)) {
|
if ($entry = $this->getResource($path)) {
|
||||||
$collectionId = $entry->getElementsByTagNameNS('http://schemas.google.com/g/2005', 'resourceId')->item(0)->nodeValue;
|
$next = $entry->getElementsByTagName('content')->item(0)->getAttribute('src');
|
||||||
$next = 'https://docs.google.com/feeds/default/private/full/folder%3A'.$collectionId.'/contents';
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue