diff --git a/lib/connector/sabre/objecttree.php b/lib/connector/sabre/objecttree.php
index dbc8c452d1bdf2e744932ef4a0e112ba22568b74..c4ddcbecbb86e3f0ae6b0019f0d1ae5a52e259c1 100644
--- a/lib/connector/sabre/objecttree.php
+++ b/lib/connector/sabre/objecttree.php
@@ -34,7 +34,7 @@ class ObjectTree extends \Sabre_DAV_ObjectTree {
 			throw new \Sabre_DAV_Exception_NotFound('File with name ' . $path . ' could not be located');
 		}
 
-		if ($info['mimetype'] == 'httpd/unix-directory') {
+		if ($info['mimetype'] === 'httpd/unix-directory') {
 			$node = new \OC_Connector_Sabre_Directory($path);
 		} else {
 			$node = new \OC_Connector_Sabre_File($path);