aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-12-26 12:12:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-12-27 10:49:09 -0700
commit0d3b164722f85588f80e8b69d5d962ec94453265 (patch)
tree5a6d5c787250a9c6a1484c20f968e72b53fb4e17 /doc
parent487a47339064878474727ea5b80bd4a185a053b8 (diff)
downloadconsfigurator-0d3b164722f85588f80e8b69d5d962ec94453265.tar.gz
src/property/file.lisp: unless mode supplied, create missing dirs
This means you can apply properties like FILE:HAS-CONTENT without also having to explicitly apply FILE:{CONTAINING-,}DIRECTORY-EXISTS or similar. If missing intermediate directories need to have particular modes or ownership, it is easy to apply properties to ensure those directories exist with those attributes before applying the property which will create the file. Then there are no missing directories for the latter property to create. In the case where a mode for the file is supplied, leave it to the caller to create the directories, as a safety measure (see 487a473390). In the future we might create missing intermediate directories based on a supplied mode, such as creating them 0750 when the supplied mode is 0640. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions