about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ennum.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/ennum.el b/ennum.el
index e7ee9f0..530cae3 100644
--- a/ennum.el
+++ b/ennum.el
@@ -247,6 +247,15 @@ respectively by - and _, and the pad character = is optional."
           (ennum-setting :store))))
     ;; Create store if it doesn't exist
     (ennum-mkdir-p (ennum-setting :store))
+    ;; Mark store as a cache directory following the Cache Directory
+    ;; Tagging Specification: https://bford.info/cachedir/
+    (let ((cachedir-tag (expand-file-name "CACHEDIR.TAG" (ennum-setting :store))))
+      (unless (file-exists-p cachedir-tag)
+        (with-temp-file cachedir-tag
+          (insert "Signature: 8a477f597d28d172789f06886806bc55
+# This directory is the ennum store. All the data in this
+# directory is generated from source files backed up elsewhere.
+"))))
     ;; Create store item if it doesn't already exist
     (unless (file-exists-p output)
       (message "Building %s" output)