MCPcopy Index your code
hub / github.com/coder/coder / isFolder

Function isFolder

site/src/utils/filetree.ts:87–90  ·  view source on GitHub ↗
(path: string, fileTree: FileTree)

Source from the content-addressed store, hash-verified

85};
86
87export const isFolder = (path: string, fileTree: FileTree) => {
88 const content = getFileContent(path, fileTree);
89 return typeof content === "object";
90};
91
92export const traverse = (
93 fileTree: FileTree,

Callers 4

filetree.test.tsFile · 0.90
TemplateVersionEditorFunction · 0.90
handleConfirmFunction · 0.90
validatePathFunction · 0.70

Calls 1

getFileContentFunction · 0.85

Tested by

no test coverage detected