save-local
Final-stage delivery. Local filesystem only (no Drive, no cloud).
Inputs
input: rendered short pathsource: original source video path (used to derive folder name whensubdiris omitted)name(optional): destination filename, defaults to<input basename>subdir(optional): destination folder underOUTPUT_DIR. When given, overrides the source-stem derivation — the pipeline passes a kebab slug of the source title so shorts land inoutput/<title-slug>/instead of the genericsourcestem.
Output
Path to the saved file: <OUTPUT_DIR>/<subdir-or-source-stem>/<name>. Returns the path.
How
- Read
OUTPUT_DIRfrom.env(default./output). - Folder =
subdirif given, elsePath(source).stem. mkdir -p <OUTPUT_DIR>/<stem>.- Copy (not move — preserve the render in its working dir) the file in.
- Print the absolute destination path so the user can open it.
Status
Implemented — save-local.sh.