Skip to content

Folder policies ​

A folder policy gives everything that lands in a folder its own lifespan. Downloads is the usual one:

powershell
obit watch C:\Users\you\Downloads 2w        # files that land in Downloads are buried two weeks later
obit watch --list                           # folder policies, their exemptions and quiet periods
obit watch --remove C:\Users\you\Downloads  # remove a policy and the lifespans it registered

On macOS and Linux, approving a policy registers each top-level item separately. By default, its age starts when first seen. The policy folder is protected, expired subfolders only generate proposals, and download temporary files are skipped.

By default, a regular file must stay quiet for ten minutes after expiry. A change in size or modification time or an open descriptor restarts the timer and keeps the file in place. Windows holds a handle that excludes writers during the move. On macOS and Linux a writer can still open the file between the check and the rename.

Automatic burial requires access to every process belonging to the file owner. It may ignore unreadable processes of other users, including root, only for your own files with neither group nor other write permission. Choose propose for individual review. Approval accepts gaps in the process list. A confirmed open file always stays in place and the reason is shown.

For individual approval, set file_expiry = "propose" under [watch]. Use obit proposals to review and obit approve <ID> to approve. Expired subfolders still produce proposals and stay in place even after approval on macOS and Linux.

sh
obit watch "$HOME/Downloads" 2w

How it takes effect ​

  • The policy itself needs your approval. obit watch creates a proposal; it takes effect after obit approve or approval in the small window's "For you" page.
  • Ten quiet minutes first. A file is buried once it has expired and has been left untouched for 10 minutes.
  • Subfolders get their own proposal. An expired subfolder only produces a proposal and is buried after you approve it.
  • Removing a policy cancels the lifespans it registered.

Dates in Explorer ​

Tracked items in Downloads, on the Desktop and in folders under a policy show in Explorer as "name (11-13 burial)" while the real file name stays the same.

  • The dates come from a hidden desktop.ini in the folder.
  • [explorer] in config.toml turns them off (enabled = false) or on everywhere (everywhere = true).
  • Explorer caches folder views, so after extending a lifespan the same window may show the old date for up to a minute.

Finder and Dolphin show the burial date as a tag without renaming the file. Extending a lifespan updates the date. Untracking or uninstalling removes only tags FileTomb added. Nautilus has no date tag; use obit list instead.

MIT