Table of Contents

Class AppStorageMigration

Namespace
VpnHood.AppLib.App
Assembly
VpnHood.AppLib.App.dll

Provides the one move of what must not travel with a backup, the sign-in session and the account's cache, the log, the unpacked UI and the temporary files, from the storage folder to the device-only one, which a platform makes before the head's providers read them.

[Obsolete("Migration (2026-10): drop a few months after it ships, with its calls in VpnHoodAndroidApp and VpnHoodIosApp and the An_update_moves_what_must_not_travel_and_leaves_the_rest test.")]
public static class AppStorageMigration
Inheritance
AppStorageMigration
Inherited Members

Methods

MoveToNoBackup(string, string)

Moves what must not travel with a backup to the device-only folder; an item that is there already stays, and the old copy goes. An item that fails to move is logged and left.

public static void MoveToNoBackup(string storagePath, string noBackupStoragePath)

Parameters

storagePath string

The storage folder (StoragePath).

noBackupStoragePath string

The device-only folder (NoBackupStoragePath).

Exceptions

IOException

The device-only folder could not be made.

UnauthorizedAccessException

The process may not make the device-only folder.