From baffa03fa59430312e9c625451c633b54a3a51ce Mon Sep 17 00:00:00 2001
From: Michael Gapczynski <GapczynskiM@gmail.com>
Date: Wed, 29 Feb 2012 13:18:19 -0500
Subject: [PATCH] Fix opendir for folders aka Google Docs collections

---
 lib/filestorage/google.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/filestorage/google.php b/lib/filestorage/google.php
index 0c562941d4..4998554838 100644
--- a/lib/filestorage/google.php
+++ b/lib/filestorage/google.php
@@ -136,8 +136,7 @@ class OC_Filestorage_Google extends OC_Filestorage_Common {
 			$next = 'https://docs.google.com/feeds/default/private/full/folder%3Aroot/contents';
 		} else {
 			if ($entry = $this->getResource($path)) {
-				$collectionId = $entry->getElementsByTagNameNS('http://schemas.google.com/g/2005', 'resourceId')->item(0)->nodeValue;
-				$next = 'https://docs.google.com/feeds/default/private/full/folder%3A'.$collectionId.'/contents';
+				$next = $entry->getElementsByTagName('content')->item(0)->getAttribute('src');
 			} else {
 				return false;
 			}
-- 
GitLab