From 89f17ef6fe1b33d6eaa2f4a19e9fb598b219ab26 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 13 Jan 2015 12:45:33 +0100 Subject: adapt decrypt all and restore/delete key backups to the new folder structure for encryption key introduced with OC8 --- lib/private/util.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/private') 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)) { -- cgit v1.2.3