Skip to content

Commit e6f4877

Browse files
committed
fix unlink
1 parent d7e8d33 commit e6f4877

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/zipsync/src/unpack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as zlib from 'node:zlib';
88
import { type IReadonlyPathTrieNode, LookupByPath } from '@rushstack/lookup-by-path/lib/LookupByPath';
99
import type { ITerminal } from '@rushstack/terminal';
1010

11-
import { getDisposableFileHandle, type IDisposableFileHandle } from './fs';
11+
import { getDisposableFileHandle, unlinkSync, type IDisposableFileHandle } from './fs';
1212
import { type IIncrementalZlib, createIncrementalZlib } from './compress';
1313
import { markStart, markEnd, getDuration, emitSummary, formatDuration } from './perf';
1414
import {
@@ -191,7 +191,7 @@ export function unpack({
191191
terminal.writeVerboseLine(`${padding}${item.name}`);
192192
if (!childNode?.value) {
193193
terminal.writeDebugLine(`Deleting file: ${relativePath}`);
194-
fs.unlinkSync(relativePath);
194+
unlinkSync(relativePath);
195195
deletedFilesCount++;
196196
}
197197
} else if (item.isDirectory()) {
@@ -202,7 +202,7 @@ export function unpack({
202202
}
203203
} else {
204204
terminal.writeVerboseLine(`${padding}${item.name} (not file or directory, deleting)`);
205-
fs.unlinkSync(relativePath);
205+
unlinkSync(relativePath);
206206
deletedOtherCount++;
207207
}
208208
}

0 commit comments

Comments
 (0)