apps/encryption/lib/Migration.php
/**
	 * rename user-specific public keys
	 *
	 * @param string $user
	 */
rename user-specific public keys
@param string $user
rename user - specific public keys @param string $user
private function renameUsersPublicKey($user) {
		$oldPublicKey = '/files_encryption/public_keys/' . $user . '.publicKey';
		$newPublicKey = $user . '/files_encryption/' . $this->moduleId . '/' . $user . '.publicKey';
		if ($this->view->file_exists($oldPublicKey)) {
			$this->createPathForKeys(dirname($newPublicKey));
			$this->view->rename($oldPublicKey, $newPublicKey);
		}
	}
private function renameUsersPublicKey ( $ user ) { $ oldPublicKey = '/files_encryption/public_keys/' . $ user . '.publicKey' ; $ newPublicKey = $ user . '/files_encryption/' . $ this -> moduleId . '/' . $ user . '.publicKey' ; if ( $ this -> view -> file_exists ( $ oldPublicKey ) ) { $ this -> createPathForKeys ( dirname ( $ newPublicKey ) ) ; $ this -> view -> rename ( $ oldPublicKey , $ newPublicKey ) ; } }
rename user-specific public keys
 @param string $user
rename user - specific public keys @param string $user