move-asset
Move or rename a file in Foundry VTT's Data directory with automatic reference management. Refuses if references would break unless relink or force options are used.
Instructions
Plane B (file channel, write). Move/rename a file under the Foundry Data/ root over WebDAV. REFERENCE-AWARE: by default REFUSES with a report if anything references the source (moving would break those pointers). Pass relink:true to move AND rewrite all references (old→new), or force:true to move without relinking. Refuses live world-DB paths. Requires MOLTEN_WEBDAV_PASSWORD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Move even if references exist (without relinking) or the bridge is down. | |
| relink | No | After moving, rewrite all references from the old path to the new one. | |
| toPath | Yes | New Data-relative path. | |
| fromPath | Yes | Current Data-relative path. | |
| overwrite | No | Allow overwriting an existing file at the destination. |