pub fn scaffold_course(dir: &Path) -> Result<(), ScaffoldError>Expand description
Scaffold a fresh course into dir, writing every file in the
plan.
The effectful shell (§2.2) over the pure plan. The refuse-on-nonempty guard
fires first (§1.3.1): a directory that already holds files is rejected as
ScaffoldError::TargetNotEmpty before any write, so a refused target is
left exactly as it was — never partially clobbered. An absent or empty target
is then created if missing and each FileSpec written verbatim.