CubeLinkTarget typedef

CubeLinkTarget = ({bool isLink, String? target})

One symlink-probe result for a path component:

  • (isLink: false, target: null) — a regular file or directory.
  • (isLink: true, target: "…") — a symlink; target is verbatim (absolute or relative, and may itself contain links or ..).
  • (isLink: true, target: null) — an indirection exists but cannot be read (an unreadable Windows reparse point/junction, a permission wall): callers MUST deny — fail closed.

Implementation

typedef CubeLinkTarget = ({bool isLink, String? target});