Re-use `ensure_dir()` instead of creating another function.
Change keys on .json for consistency and make these keys constants.
Specify field names on the `actions` array - "Explicit is better than implicit."