FileMode
API reference › Scaffold › Manifest › FileMode
Represents the write modes that a provider manifest assigns to destinations.
| Case | Value | Description |
|---|---|---|
Append | 'append' | Merges the provider entries missing from the destination on every run, creating the destination when missing. |
Prepend | 'prepend' | Prepends the provider block on every run unless the destination already contains it. |
Preserve | 'preserve' | Writes the destination only when it is missing; only reapply --force overwrites an existing file. |
Replace | 'replace' | Overwrites the destination unless it changed since its recorded hash or was adopted from an existing file. |