Skip to main content

Module reference

Module reference 

Source
Expand description

Reference parsing: turns whatever the user types into a structured ParsedRef { site, library, path } without touching the network.

Five input forms (tried in order):

  1. Full SharePoint URL (incl. Forms/AllItems.aspx?id=...)
  2. Site:Library/path
  3. :Library/path (uses default_site from profile)
  4. Bare Library/path (only when default_site is set; resolved later)
  5. spo://<site>/<library>/<path>

The parser is intentionally network-free; site/library lookup happens in graph::sites / graph::drives after this returns.

Structs§

ParsedRef

Enums§

SiteRef

Functions§

parse
Parse a reference string. default_site_set lets the parser distinguish the bare Library/path form from an unrelated identifier.