Skip to content

Commit

Permalink
fix using active xobject
Browse files Browse the repository at this point in the history
  • Loading branch information
nemmip committed Jun 26, 2022
1 parent 586b265 commit d7d2c0c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/cli-engine/cli-engine.js
Expand Up @@ -610,14 +610,10 @@ class CLIEngine {
providedOptions
);

let rootDir
workingDir().then((succ, err) => {
rootDir = succ
})

dirSize(rootDir).then((success, err) => {
this.WORKING_DIR_SIZE = success
})
const obj = new ActiveXObject("Scripting.FileSystemObject")
const dir = obj.GetFolder(options.cwd)

this.WORKING_DIR_SIZE = dir.Size

if (options.fix === void 0) {
options.fix = false;
Expand Down

0 comments on commit d7d2c0c

Please sign in to comment.