Skip to content

basalt / drives-microsoft/src / parseMicrosoftRoot

Function: parseMicrosoftRoot() ​

> parseMicrosoftRoot(handle, provider): MicrosoftRoot

Defined in: drives-microsoft/src/roots.ts:106

Parses a handle. Refuses anything that could reshape a request path.

A bare id with no keyword is read as an item id in the connection's own drive, which is what makes list({ folderId }) work with the externalId of a folder the listing just returned — the common case, and the one an app writes without reading this file.

Parameters ​

handle ​

string | undefined

provider ​

string

Returns ​

MicrosoftRoot

Released under the MIT License.