From 3234c91557a5737e9e14097efa31e723b3ca390b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 10 Nov 2014 12:00:27 -0800 Subject: [PATCH] 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. --- apps/files_external/lib/google.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 62b0f182e9..d3a665cd53 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -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();