google: drop duplicate path trim from opendir()

opendir() trims the path passed then calls getDriveFile() -
which immediately does the same trim operation. This breaks
opendir() on the root directory, which causes the failure of
the testStat() test when it checks the ctime of the root dir.
This commit is contained in:
Adam Williamson 2014-11-10 12:00:27 -08:00
parent 2023878d53
commit 3234c91557
1 changed files with 0 additions and 2 deletions

View File

@ -228,8 +228,6 @@ class Google extends \OC\Files\Storage\Common {
}
public function opendir($path) {
// Remove leading and trailing slashes
$path = trim($path, '/');
$folder = $this->getDriveFile($path);
if ($folder) {
$files = array();