| Name | Type | Description |
|---|---|---|
text* | str | Raw pasted/dropped text payload. |
Return whether a payload has the shape a terminal uses for a file drop.
Terminals deliver a dragged file as an absolute path (POSIX or Windows
drive/UNC), a ~/ path, or a file:// URL, so requiring that shape keeps a
payload that begins with a hand-typed relative path (assets/logo.png)
from being mistaken for a drop. Without this guard parse_pasted_path_payload
would resolve such a token against the working directory, and a caller that
rejects drops would swallow ordinary text. The check is leading-token only:
once the first token passes, later relative tokens still resolve against the
working directory.
Pure string inspection, so callers can apply it on the event loop to decide whether the filesystem-touching parse is worth a thread hop at all.