MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isNewFile

Function isNewFile

web/components/tools/ToolFileWrite.tsx:38–41  ·  view source on GitHub ↗
(result?: string)

Source from the content-addressed store, hash-verified

36}
37
38function isNewFile(result?: string): boolean {
39 if (!result) return false;
40 return /creat|new/i.test(result);
41}
42
43export function ToolFileWrite({
44 input,

Callers 1

ToolFileWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected