type alias RelativeNewerPolicy

What to do when the incoming download is a newer revision of something already in the library.

  • "always_overwrite": delete the old archive unconditionally, regardless of filename.
  • "overwrite_if_same_name": only overwrite when destination filenames actually collide; otherwise keep both as separate archives.

Definition

"always_overwrite" | "overwrite_if_same_name"

Usage

import { type RelativeNewerPolicy } from "crates/lanrurugi-plugin/dispatcher/plugin-sdk.ts";