MCPcopy
hub / github.com/directus/directus / getFolderUrl

Function getFolderUrl

app/src/utils/get-asset-url.ts:40–46  ·  view source on GitHub ↗
(folder: string)

Source from the content-addressed store, hash-verified

38}
39
40export function getFolderUrl(folder: string) {
41 const assetUrl = new URL(`assets/folder/${folder}`, getPublicURL());
42
43 assetUrl.searchParams.set('download', '');
44
45 return assetUrl.href;
46}

Callers

nothing calls this directly

Calls 2

getPublicURLFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected