diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 571b4d79ae25b1677e0d9cc83139d505412b6aa3..2a953ac63f45756f11bbe1d55c96e0a195c49ed0 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -105,7 +105,6 @@ class DAV extends \OC\Files\Storage\Common{
 			$response=$this->client->propfind($path, array(), 1);
 			$id=md5('webdav'.$this->root.$path);
 			$content = array();
-			\OC_FakeDirStream::$dirs[$id]=array();
 			$files=array_keys($response);
 			array_shift($files);//the first entry is the current directory
 			foreach ($files as $file) {