diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index e0d263d80b1318c2e945a490a5fc924c9efb490c..4c328993ef77530d36ac0c8d27a3352cbd466f11 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -471,4 +471,13 @@ class Encryption extends Wrapper {
 		return parent::stream_seek($position);
 	}
 
+	/**
+	 * @param string $path
+	 * @param array $options
+	 * @return bool
+	 */
+	public function dir_opendir($path, $options) {
+		return false;
+	}
+
 }