Liking cljdoc? Tell your friends :D

house.jux--.prevayler-impl5--.cleanup


delete-old-snapshots!clj

(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}
raw docstring

files-to-deleteclj

(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).
raw docstring

tz-utcclj

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close