fs.file.move --from FILE [--store TEXT] [--folder TEXT] [--filename TEXT] [--path TEXT] [--on-conflict error|skip|overwrite] → fileMoves a file to another key or store. Move the file --from names: copy it to the destination (--folder, --filename or --path, in the node's --store), then delete the source and forget its exposure rule. Adds file, the durable FileRef at the new key (origin: fs.file.move), and keeps the rest of the payload. Any FileRef still pointing at the source is now dangling — update the row that stored it.
Flags
--from(required): The file: a FileRef, an upload or a store key.--store: The store to write to:local, or the id of ans3credential; a bare --from key is read from it too. Saved explicitly when the pipeline is registered.--folder: Destination folder (default: the source's folder).--filename: Destination name (default: the source's name).--path: Exact destination key; overrides --folder and --filename.--on-conflict: When the target already exists: overwrite, skip or error (default: error)
Examples
Archive a processed file
| fs.file.move --from "{{ input.file }}" --folder archive/inboxInput:
json
{ "file": { "__zf_type": "file_ref", "backend": "zebfs", "store": "local", "ref": "inbox/a1.csv", "filename": "a1.csv", "mime": "text/csv", "kind": "csv", "size": 9021, "sha256": "sha256:…", "lifecycle": "durable", "origin": "fs.file.put", "trust": "generated" }}It answers:
json
{ "file": { "__zf_type": "file_ref", "backend": "zebfs", "store": "local", "ref": "archive/inbox/a1.csv", "filename": "a1.csv", "mime": "text/csv", "kind": "csv", "size": 9021, "sha256": "sha256:…", "lifecycle": "durable", "origin": "fs.file.move", "trust": "generated" }}