From 04b63132cecfe95ee6735517353115a0f38387e9 Mon Sep 17 00:00:00 2001 From: jmtd Date: Sun, 7 Feb 2021 09:40:08 -0400 Subject: [PATCH] a clean-up plugin, to keep dest dir synced only to ikiwiki generates files --- doc/todo/plugin_to_clean_up_files_in_destdir.mdwn | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 doc/todo/plugin_to_clean_up_files_in_destdir.mdwn diff --git a/doc/todo/plugin_to_clean_up_files_in_destdir.mdwn b/doc/todo/plugin_to_clean_up_files_in_destdir.mdwn new file mode 100644 index 000000000..0a7e131bc --- /dev/null +++ b/doc/todo/plugin_to_clean_up_files_in_destdir.mdwn @@ -0,0 +1,6 @@ +By default, IkiWiki will leave any existing files in the destination directory alone. + +In some circumstances (a force push being one), files that IkiWiki did once generate can be left behind in the destination directory if it no longer does. + +Since IkiWiki generates a list of all destination file paths that it is responsible for, a plugin (armed with that knowledge) could identify the files it *isn't* responsible for, too, and clean them up. This would be useful if the user wishes to keep a 1:1 correspondence between source and destination directories. + *—[[Jon]], 2021-02-07* -- 2.39.5