basalt / drives-microsoft/src / toPath
Function: toPath()
> toPath(item): string | undefined
Defined in: drives-microsoft/src/metadata.ts:109
The display path.
parentReference.path is Graph's own spelling — /drive/root:/Finance/2026 — where everything before root: is addressing and everything after it is the human path. Only the second half is a path an app should show or correlate on, so the prefix is dropped and the item's own name appended.
Parameters
item
Returns
string | undefined