MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / updateDeleteFileStat

Function updateDeleteFileStat

packages/overlay/src/delete-state.ts:111–118  ·  view source on GitHub ↗
(filePath: string, mtime: number, size: number)

Source from the content-addressed store, hash-verified

109}
110
111export function updateDeleteFileStat(filePath: string, mtime: number, size: number): void {
112 for (const entry of deletes.values()) {
113 if (entry.sourceLocation.filePath === filePath && entry.fileMtime == null) {
114 entry.fileMtime = mtime;
115 entry.fileSize = size;
116 }
117 }
118}
119
120export function clearAllDeletes(): void {
121 for (const entry of deletes.values()) {

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected