Skip to content

Commit dbc581f

Browse files
committed
fix: fix windows enoent finder and getSize
1 parent 321f21a commit dbc581f

3 files changed

Lines changed: 28 additions & 16 deletions

File tree

package-lock.json

Lines changed: 25 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"dependencies": {
5151
"ansi-escapes": "^6.0.0",
5252
"colors": "1.4.0",
53-
"get-folder-size": "^4.0.0",
53+
"get-folder-size": "^2.0.0",
5454
"keypress": "^0.2.1",
5555
"node-emoji": "^1.10.0",
5656
"rxjs": "^7.5.7"

src/services/windows-files.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as getSize from 'get-folder-size';
1+
import getSize from 'get-folder-size';
22

33
import { FileService, StreamService } from '../services/index.js';
44

@@ -34,7 +34,7 @@ export class WindowsFilesService extends FileService {
3434

3535
const excludeWords = exclude ? exclude.join(' ') : '';
3636

37-
const binPath = normalize(`${__dirname}/../bin/windows-find`);
37+
const binPath = normalize(`${__dirname}/bin/windows-find`);
3838
const args = [path, target, excludeWords];
3939

4040
const child = spawn(binPath, args);

0 commit comments

Comments
 (0)