MCPcopy Create free account
hub / github.com/vercel/vercel / handleFileDeleted

Method handleFileDeleted

packages/cli/src/util/dev/server.ts:451–464  ·  view source on GitHub ↗
(
    fsPath: string,
    changed: Set<string>,
    removed: Set<string>
  )

Source from the content-addressed store, hash-verified

449 }
450
451 handleFileDeleted(
452 fsPath: string,
453 changed: Set<string>,
454 removed: Set<string>
455 ): void {
456 const name = relative(this.cwd, fsPath);
457 output.debug(`File deleted: ${name}`);
458 fileRemoved(name, this.files, changed, removed);
459 const extensionless = this.getExtensionlessFile(name);
460 if (extensionless) {
461 output.debug(`File deleted: ${extensionless}`);
462 fileRemoved(extensionless, this.files, changed, removed);
463 }
464 }
465
466 async handleFileModified(
467 fsPath: string,

Callers 1

Calls 3

relativeFunction · 0.90
fileRemovedFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected