You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
When running this code:
I get this error:
But this code works as expected:
The text was updated successfully, but these errors were encountered: