apps/encryption/lib/Migration.php
/**
	 * create backup of user specific keys
	 *
	 * @param string $user
	 * @return bool
	 */
create backup of user specific keys
@param string $user
@return bool
create backup of user specific keys @param string $user @return bool
private function backupUserKeys($user) {
		$encryptionDir = $user . '/files_encryption';
		if ($this->view->is_dir($encryptionDir)) {
			$backupDir = $user . '/encryption_migration_backup_' . date("Y-m-d_H-i-s");
			$this->view->mkdir($backupDir);
			$this->view->copy($encryptionDir, $backupDir);
			return true;
		}
		return false;
	}
private function backupUserKeys ( $ user ) { $ encryptionDir = $ user . '/files_encryption' ; if ( $ this -> view -> is_dir ( $ encryptionDir ) ) { $ backupDir = $ user . '/encryption_migration_backup_' . date ( " Y-m-d_H-i-s " ) ; $ this -> view -> mkdir ( $ backupDir ) ; $ this -> view -> copy ( $ encryptionDir , $ backupDir ) ; return true ; } return false ; }
create backup of user specific keys
 @param string $user
 @return bool
create backup of user specific keys @param string $user @return bool