diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index c5494b9b3edcdf0e7322439d1f01bbe9af0c5b70..d6c33d948dcc3bf3a484c37cd4423230efe7d452 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1694,6 +1694,7 @@ class View {
 	 * @throws \OCP\Lock\LockedException if the path is already locked
 	 */
 	public function changeLock($path, $type) {
+		$path = Filesystem::normalizePath($path);
 		$absolutePath = $this->getAbsolutePath($path);
 		if (!$this->shouldLockFile($absolutePath)) {
 			return false;