diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 53fec11009d37b3416bc81f5997ac65d5160135a..d40e6b3d124ca7d5cbde4d383989206f487d8147 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -485,7 +485,7 @@ class Hooks { // create key folders if it doesn't exists if (!$view->file_exists(dirname($newKeysPath))) { - $view->mkdir(dirname($newKeysPath)); + $view->mkdir(dirname($newKeysPath)); } $view->$operation($oldKeysPath, $newKeysPath); @@ -566,7 +566,7 @@ class Hooks { return true; } - $util = new Util(new \OC\Files\View('/'), \OCP\USER::getUser()); + $util = new Util($view, \OCP\USER::getUser()); $keysPath = Keymanager::getKeyPath($view, $util, $path);