diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 9e8ce3ec1848c5b88da48db64fd7acea9c263a3e..4e3eb1989b78454753b0237aecf654745f7f60b9 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -144,13 +144,7 @@ class Filesystem {
 	 */
 	static public function getMountPoint($path) {
 		\OC_Hook::emit(self::CLASSNAME, 'get_mountpoint', array('path' => $path));
-		if (!$path) {
-			$path = '/';
-		}
-		if ($path[0] !== '/') {
-			$path = '/' . $path;
-		}
-		$path = str_replace('//', '/', $path);
+		$path = self::normalizePath($path) . '/';
 		$foundMountPoint = '';
 		$mountPoints = array_keys(self::$mounts);
 		foreach ($mountPoints as $mountpoint) {
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index 363426511bdf524f119d1be747782f6ce2044faf..5837093fdd660ce307b876519947f0fc79afc3c1 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -60,7 +60,7 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
 		$this->assertEquals('/',\OC\Files\Filesystem::getMountPoint('/'));
 		$this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some/folder'));
 		$this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some/'));
-		$this->assertEquals('/',\OC\Files\Filesystem::getMountPoint('/some'));
+		$this->assertEquals('/some/',\OC\Files\Filesystem::getMountPoint('/some'));
 		list( , $internalPath)=\OC\Files\Filesystem::resolvePath('/some/folder');
 		$this->assertEquals('folder',$internalPath);
 	}
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index ecfc803dc23ddd4a27965e07e533a197299d7361..6f8d29c25b287d61c667aacdcc3f464a3f696643 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -71,6 +71,18 @@ class View extends \PHPUnit_Framework_TestCase {
 		$this->assertEquals($storageSize + $textSize, $folderData[2]['size']);
 		$this->assertEquals($storageSize, $folderData[3]['size']);
 
+		$folderData = $rootView->getDirectoryContent('/substorage');
+		/**
+		 * expected entries:
+		 * foo.png
+		 * foo.txt
+		 * folder
+		 */
+		$this->assertEquals(3, count($folderData));
+		$this->assertEquals('foo.png', $folderData[0]['name']);
+		$this->assertEquals('foo.txt', $folderData[1]['name']);
+		$this->assertEquals('folder', $folderData[2]['name']);
+
 		$folderView = new \OC\Files\View('/folder');
 		$this->assertEquals($rootView->getFileInfo('/folder'), $folderView->getFileInfo('/'));