From 212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Thu, 9 Jan 2025 14:47:41 +1000 Subject: Create Foswiki subdirectories. --- SuckItFos | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SuckItFos') diff --git a/SuckItFos b/SuckItFos index d688c95..f9d9b6c 100755 --- a/SuckItFos +++ b/SuckItFos @@ -18,7 +18,9 @@ do base=`echo "${line}" | cut -d '/' -f 1` file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` mkdir -p Foswiki/$base + mkdir -p Foswiki/${base}/`dirname ${file}` mkdir -p combined/$base + mkdir -p combined/${base}/`dirname ${file} echo "Converting ${URL}/${base}/${file} -> Foswiki/${base}/${file}.md" # pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM -- cgit v1.1