When running this code:
let trashArr = [
"./public/img",
"!./public/img/*/**"
];
Trash(trashArr);
I get this error:
(node:15172) UnhandledPromiseRejectionWarning: Error: Command failed: D:\x\node_modules\trash\lib\windows-trash.exe D:\x\public\img
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
But this code works as expected:
let trashArr = [
"./public/img",
"!./public/img/*/**"
];
Globby(trashArr).then(paths => Trash(paths));
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too