Sweep the config directory even when the data directory is kept #50

Open
opened 2026-08-15 18:59:34 +00:00 by rosa · 0 comments
Owner

What to build

Purging walks the two directories the casino made for itself and takes each one
that is empty, leaving one that still holds anything — a file it was never
entitled to remove. Stopping there is right. But the loop expresses "stop" by
ending the whole run, so a stray file in the data directory means the config
directory is never even looked at, however empty it is. Nothing chose that; it
is what using the loop for control flow adds up to.

Consider the two independently. One directory holding something that isn't ours
says nothing about the other.

Acceptance criteria

  • An empty config directory is taken even when the data directory is kept
  • A directory holding a file the casino did not write is still left alone,
    and still says so
  • A directory that was never there still counts as already gone
  • CHANGELOG notes that purge no longer skips the config directory when the
    data directory is kept

Blocked by

## What to build Purging walks the two directories the casino made for itself and takes each one that is empty, leaving one that still holds anything — a file it was never entitled to remove. Stopping there is right. But the loop expresses "stop" by ending the whole run, so a stray file in the data directory means the config directory is never even looked at, however empty it is. Nothing chose that; it is what using the loop for control flow adds up to. Consider the two independently. One directory holding something that isn't ours says nothing about the other. ## Acceptance criteria - [ ] An empty config directory is taken even when the data directory is kept - [ ] A directory holding a file the casino did not write is still left alone, and still says so - [ ] A directory that was never there still counts as already gone - [ ] CHANGELOG notes that purge no longer skips the config directory when the data directory is kept ## Blocked by - #48
Sign in to join this conversation.
No description provided.