(delete-old-snapshots! dir & [options])
Deletes all snapshot .part files and deletes all but the newest snapshot files. Receives options with the number of snapshot files to keep. Example: {:keep 3}
Deletes all snapshot .part files and deletes all but the newest snapshot files. Receives options with the number of snapshot files to keep. Example: {:keep 3}
(files-to-delete max-files-to-keep files & [last-modified-fn])
Internal use only. Receives: max-files-to-keep: number of files to keep files: seq of files candidates for deletion last-modified-fn: an optional override to be used instead of .lastModified (for tests) Keeps the newest file for each month for the last max-files-to-keep months. Keeps the oldest file overall if there are less months than max-files-to-keep. Returns seq of files to delete (the ones not kept above).
Internal use only. Receives: max-files-to-keep: number of files to keep files: seq of files candidates for deletion last-modified-fn: an optional override to be used instead of .lastModified (for tests) Keeps the newest file for each month for the last max-files-to-keep months. Keeps the oldest file overall if there are less months than max-files-to-keep. Returns seq of files to delete (the ones not kept above).
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 |