make sure that home folders are mounted correctly before write/read keyfile

This commit is contained in:
Björn Schießle 2013-02-25 12:29:07 +01:00
parent 31c434b795
commit ca1b94d890
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ class Keymanager {
*/
public static function setFileKey( \OC_FilesystemView $view, $path, $userId, $catfile ) {
\OC\Files\Filesystem::initMountPoints($userId);
$basePath = '/' . $userId . '/files_encryption/keyfiles';
$targetPath = self::keySetPreparation( $view, $path, $basePath, $userId );
@ -134,6 +135,7 @@ class Keymanager {
*/
public static function getFileKey( \OC_FilesystemView $view, $userId, $filePath ) {
\OC\Files\Filesystem::initMountPoints($userId);
$filePath_f = ltrim( $filePath, '/' );
$keyfilePath = '/' . $userId . '/files_encryption/keyfiles/' . $filePath_f . '.key';