Shared helpers for wipe modules.
Shared helpers for wipe modules.
(abs-path p)Resolve a path relative to $HOME if not abs-patholute.
Resolve a path relative to $HOME if not abs-patholute.
(delete-recursively! p)Delete a path recursively. Returns {:removed n :bytes b}.
Delete a path recursively. Returns {:removed n :bytes b}.
(dir-bytes p)Recursive byte count of a directory (best effort, symlinks not followed).
Recursive byte count of a directory (best effort, symlinks not followed).
(file-bytes p)Size of a file in bytes. 0 for missing or non-file.
Size of a file in bytes. 0 for missing or non-file.
(plan tool targets preserves notes)Build a WipePlan from a tool keyword, seq of WipeTargets, preserves, and notes.
Build a WipePlan from a tool keyword, seq of WipeTargets, preserves, and notes.
(target tool kind reason p)Build a WipeTarget. If path doesn't exist, returns nil (skipped).
Build a WipeTarget. If path doesn't exist, returns nil (skipped).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |