bundles / papyri latest / papyri / cli / upload / _bundle_already_uploaded
function
papyri.cli.upload:_bundle_already_uploaded
source: /papyri/cli/upload.py :123
Signature
def _bundle_already_uploaded ( url : str , pkg : str , version : str , bundle_hash : str , token : str | None ) → bool Summary
Ask the viewer whether it already holds this exact bundle.
Extended Summary
Sends GET <url>?module=&version=&hash= and returns the server's exists flag. Fails open: any network/parse error (or an older viewer that doesn't implement the check) returns False so the caller uploads anyway — the dedup check must never block a legitimate upload.
Aliases
-
papyri.cli.upload._bundle_already_uploaded