MCPcopy Index your code
hub / github.com/simstudioai/sim / buildListUrl

Function buildListUrl

apps/sim/connectors/onedrive/onedrive.ts:136–145  ·  view source on GitHub ↗

* Builds the list URL for the configured folder path or root.

(folderPath?: string)

Source from the content-addressed store, hash-verified

134 * Builds the list URL for the configured folder path or root.
135 */
136function buildListUrl(folderPath?: string): string {
137 const trimmed = folderPath?.trim()
138 if (trimmed) {
139 // Normalize path: strip leading/trailing slashes
140 const normalized = trimmed.replace(/^\/+|\/+$/g, '')
141 const encoded = normalized.split('/').map(encodeURIComponent).join('/')
142 return `${GRAPH_BASE_URL}/me/drive/root:/${encoded}:/children`
143 }
144 return `${GRAPH_BASE_URL}/me/drive/root/children`
145}
146
147export const onedriveConnector: ConnectorConfig = {
148 ...onedriveConnectorMeta,

Callers 1

onedrive.tsFile · 0.85

Calls 2

joinMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected