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

Function removeFile

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

Source from the content-addressed store, hash-verified

53};
54
55export const removeFile = (path: string, fileTree: FileTree) => {
56 const updatedFileTree = structuredClone(fileTree);
57 unset(updatedFileTree, path.split("/"));
58 return updatedFileTree;
59};
60
61export const moveFile = (
62 currentPath: string,

Callers 3

filetree.test.tsFile · 0.90
TemplateVersionEditorFunction · 0.90
moveFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected