aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/hooks/hooks.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-11 17:21:08 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-18 12:19:33 +0200
commita921ad89259f1d580292d649a58160fab7a2a2d7 (patch)
tree24a31f1862cd4863aaf321bdf002a60dd1ede013 /apps/files_encryption/hooks/hooks.php
parentbaf46c74cda834bbdb4ecf4669587b92b56fe9a9 (diff)
downloadnextcloud-server-a921ad89259f1d580292d649a58160fab7a2a2d7.tar.gz
nextcloud-server-a921ad89259f1d580292d649a58160fab7a2a2d7.zip
fix rename of encryption keys
Diffstat (limited to 'apps/files_encryption/hooks/hooks.php')
-rw-r--r--apps/files_encryption/hooks/hooks.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index f546ef72373..6f739947b0c 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -490,7 +490,7 @@ class Hooks {
// create destination folder if not exists
if (!$view->file_exists(dirname($newShareKeyPath))) {
- $view->mkdir(dirname($newShareKeyPath), 0750, true);
+ mkdir($view->getLocalFile($newShareKeyPath), 0750, true);
}
$view->rename($oldShareKeyPath, $newShareKeyPath);
@@ -501,7 +501,7 @@ class Hooks {
// create destination folder if not exists
if (!$view->file_exists(dirname($newKeyfilePath))) {
- $view->mkdir(dirname($newKeyfilePath), 0750, true);
+ mkdir(dirname($view->getLocalFile($newKeyfilePath)), 0750, true);
}
$view->rename($oldKeyfilePath, $newKeyfilePath);