MCPcopy
hub / github.com/directus/directus / getFilesUrl

Function getFilesUrl

app/src/utils/get-asset-url.ts:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32export function getFilesUrl() {
33 const assetUrl = new URL(`assets/files`, getPublicURL());
34
35 assetUrl.searchParams.set('download', '');
36
37 return assetUrl.href;
38}
39
40export function getFolderUrl(folder: string) {
41 const assetUrl = new URL(`assets/folder/${folder}`, getPublicURL());

Callers

nothing calls this directly

Calls 2

getPublicURLFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected