# `FogOfWar.Wrapper.Output`
[🔗](https://github.com/mrluc/fow/blob/main/lib/fog_of_war/wrapper/output.ex#L1)

Stages generated files before replacing a project or installed app.
Destination checks protect the source tree and other inputs from replacement.

## How it fits

Used by `Generator` and `Workflow` to stage replacements safely. It is an implementation detail of generation and installation.

# `replace!`

Build in a temporary sibling directory and replace the destination after success.

# `validate!`

Check a destination against protected paths before writing or replacing it.

# `write_staged!`

Write a relative file under a staging directory controlled by the wrapper.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
