diff options
author | Arun Isaac | 2025-03-29 22:20:24 +0000 |
---|---|---|
committer | Arun Isaac | 2025-03-29 22:20:24 +0000 |
commit | 753c5a754e3b1f3db6d210d8f29874bf16e93e5a (patch) | |
tree | 52197b5abfba6a41709d9809e9778e7e0126b13d /ennum.el | |
parent | 04cfb735e9e245f70cf549091f0d6b0decd7244a (diff) | |
download | ennum-753c5a754e3b1f3db6d210d8f29874bf16e93e5a.tar.gz ennum-753c5a754e3b1f3db6d210d8f29874bf16e93e5a.tar.lz ennum-753c5a754e3b1f3db6d210d8f29874bf16e93e5a.zip |
Implement the Cache Directory Tagging Specification.
* ennum.el (ennum-eval): Mark store as a cache directory.
Diffstat (limited to 'ennum.el')
-rw-r--r-- | ennum.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |