Skip to content

Commit a85c56d

Browse files
committed
chore: improve zip
1 parent 026628d commit a85c56d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/utils/Zip.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export default class Zip {
1616
for (const uri of uriList) {
1717
if (zipped.has(uri.fsPath)) continue;
1818

19-
const name = workspace.asRelativePath(uri.fsPath, false);
19+
const name = workspace.asRelativePath(uri, false);
2020
if (!name) continue;
2121

22-
let stats;
23-
try { stats = await workspace.fs.stat(uri); }
22+
let fileStat;
23+
try { fileStat = await workspace.fs.stat(uri); }
2424
catch { continue; }
2525

26-
if (stats.type !== FileType.File) continue;
26+
if (fileStat.type !== FileType.File) continue;
2727

2828
zipped.add(uri.fsPath);
2929

0 commit comments

Comments
 (0)