AvianFlu / ncp

Asynchronous recursive file copying with Node.js.
MIT License
680 stars 103 forks source link

callback not called #131

Open kolinhar opened 5 years ago

kolinhar commented 5 years ago

When I run the first time this code with these options, it works correctly.

ncp.limit = 5;
ncp.clobber = true;

ncp("C:\\Workspaces\\myFolder", "C:\\Users\\me\\backup", err => {
    if (err) {
        return console.error(err);
    }
    console.log("Done!");
});

But the second time the callback is never called, I had to remove the destination folder content to make it work.

npm -v: 5.6.0 node -v: v8.10.0

sundowndev commented 5 years ago

Same issue here. Seems like the repo is not maintained anymore.

bartlomiejzuber commented 4 years ago

Yeah, got the same issue, I recommend to look at https://github.com/jprichardson/node-fs-extra as alternative.