From 85946b11a03d70b637d4ff5d7730dc3349a72e44 Mon Sep 17 00:00:00 2001 From: Nihilazo Date: Sat, 15 Jan 2022 22:25:52 +0000 Subject: [PATCH] make all required dirs --- linluwi.fnl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linluwi.fnl b/linluwi.fnl index 850c5d4..ff38e64 100644 --- a/linluwi.fnl +++ b/linluwi.fnl @@ -1,3 +1,5 @@ +;; TODO make directories recursively + (var lfs (require :lfs)) (var fennel (require :fennel)) @@ -287,8 +289,8 @@ ; process-dir is run for every input directory to copy the tree into output directories (fn process-dir [f] "run for every input directory to re-create the directory structure in the output" - (lfs.mkdir (.. gemini-outdir f)) - (lfs.mkdir (.. html-outdir f))) + (os.execute (.. "mkdir -p " gemini-outdir f)) + (os.execute (.. "mkdir -p " html-outdir f))) (fn walk [base position] ; for each file in the current directory "walks through the input directory tree and populate the `files` and `dirs` tables for future processing"