MCPcopy Create free account
hub / github.com/codesandbox/codesandbox-client / getModulePath

Function getModulePath

packages/common/src/sandbox/modules.ts:241–245  ·  view source on GitHub ↗
(
  modules: Array<Module>,
  directories: Array<Directory>,
  id: string
)

Source from the content-addressed store, hash-verified

239 directories.map(d => d.id + d.title + d.directoryShortid).join(',');
240
241export const getModulePath = (
242 modules: Array<Module>,
243 directories: Array<Directory>,
244 id: string
245) => getPath(modules, modules, directories, id);
246
247export const getDirectoryPath = (
248 modules: Array<Module>,

Callers 8

index.tsFile · 0.90
renderMethod · 0.90
MonacoEditorClass · 0.90
index.jsFile · 0.90
createZipFunction · 0.90
BasePreviewClass · 0.90
isMainModuleFunction · 0.85

Calls 1

getPathFunction · 0.85

Tested by

no test coverage detected