Skip to content

HAMUR_E0204: hamur migrate --write would write outside the app

hamur migrate --write would write outside the app. Error HAMUR_E0204 belongs to hamur, config, environment and command line (0001 – 0999).

Message

text
HAMUR_E0204 Refusing to write <path>: it is outside <dir>

Cause

A file --write would move or create resolves outside the app's folder, through .. or a symbolic link of a folder on its way. Nothing was written.

Fix

Replace the symbolic link with a real folder, or move the file by hand; a path from the migration table itself is a bug to report.