From 4510ec9c9e9b1cdce83ec893dfe2aebfdd5db8d7 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 9 Jan 2022 14:45:24 -0500 Subject: Ensure output file paths exist Signed-off-by: Dave Henderson --- docs/content/config.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/content/config.md b/docs/content/config.md index c1179f63..22b6f239 100644 --- a/docs/content/config.md +++ b/docs/content/config.md @@ -243,6 +243,9 @@ See [`--output-dir`](../usage/#--input-dir-and---output-dir). The directory to write rendered output files. Must be used with [`inputDir`](#inputdir). +If the directory is missing, it will be created with the same permissions as the +`inputDir`. + ```yaml inputDir: templates/ outputDir: out/ @@ -258,6 +261,9 @@ An array of output file paths. The special value `-` means `Stdout`. Multiple values can be set, but there must be a corresponding number of `inputFiles` entries present. +If any of the parent directories are missing, they will be created with the same +permissions as the input directories. + ```yaml inputFiles: - first.tmpl -- cgit v1.2.3