- **Operating System:**macos
- **Node.js version:**14.18.3
- **
fs-extra version:**10.0.1
The follow code:
const { move } = require("fs-extra");
move("/some/path/that/exists", "some/path/that/doesnt/exist", undefined)
.then(() => console.log("success")
.catch(console.error);
produces the following type error: TypeError: Cannot read property 'overwrite' of undefined
The error seems to be from the handling of optional callback and optional options on line 12-15 of lib/move/move.js
fs-extraversion:**10.0.1The follow code:
produces the following type error:
TypeError: Cannot read property 'overwrite' of undefinedThe error seems to be from the handling of
optional callbackandoptional optionson line 12-15 oflib/move/move.js