diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-13 12:45:33 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-13 12:45:33 +0100 |
commit | 89f17ef6fe1b33d6eaa2f4a19e9fb598b219ab26 (patch) | |
tree | ebf46b68c5de4e76e9086c7f31f8b773acd77cad /lib/private/util.php | |
parent | dc86cbd1e275f01840b304751a02ecbe4043c51e (diff) | |
download | nextcloud-server-89f17ef6fe1b33d6eaa2f4a19e9fb598b219ab26.tar.gz nextcloud-server-89f17ef6fe1b33d6eaa2f4a19e9fb598b219ab26.zip |
adapt decrypt all and restore/delete key backups to the new folder structure for encryption key introduced with OC8
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index ec3640503e4..d2d286fc11e 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -692,9 +692,9 @@ class OC_Util { $encryptedFiles = false; if (OC_App::isEnabled('files_encryption') === false) { $view = new OC\Files\View('/' . OCP\User::getUser()); - $keyfilePath = '/files_encryption/keyfiles'; - if ($view->is_dir($keyfilePath)) { - $dircontent = $view->getDirectoryContent($keyfilePath); + $keysPath = '/files_encryption/keys'; + if ($view->is_dir($keysPath)) { + $dircontent = $view->getDirectoryContent($keysPath); if (!empty($dircontent)) { $encryptedFiles = true; } @@ -714,7 +714,7 @@ class OC_Util { $backupExists = false; if (OC_App::isEnabled('files_encryption') === false) { $view = new OC\Files\View('/' . OCP\User::getUser()); - $backupPath = '/files_encryption/keyfiles.backup'; + $backupPath = '/files_encryption/backup.decryptAll'; if ($view->is_dir($backupPath)) { $dircontent = $view->getDirectoryContent($backupPath); if (!empty($dircontent)) { |