Expand description
One-time migration of dynamic data files from the install directory to the SD card data directory.
This migration runs once at startup when a device with removable storage has an SD card mounted. It moves settings, logs, and dictionaries โ but not the SQLite database, which is already open by the time migrations run.
ยงIdempotency
A directory is skipped if the source no longer exists. A file is skipped if the destination already exists. Re-running the migration after a partial failure is safe.
Modulesยง
- migrate_
data_ to_ sd_ card - Module generated by the
crate::migration!macro.
Constantsยง
- MIGRATE_
DIRS ๐ - Directories and individual files to migrate from the install dir to the data dir. Dictionaries, settings, and logs are included; the SQLite database is excluded because it is already open when this runs.
- MIGRATE_
FILES ๐
Functionsยง
- copy_
dir_ ๐recursive - migrate_
data_ ๐to_ sd - migrate_
data_ ๐to_ sd_ card - Migrates dynamic data files from the install directory to the SD card data directory on devices with removable storage.
- migrate_
dir ๐ - migrate_
file ๐