javascript - Node.js Error: EISDIR, open Error -
I'm trying to copy one folder by using node.js in the second path here: - < / P>
Here my code is: - But I'm getting this error: - I've also tried fs.rename function, but I have a Only get error. First: Iaisdiaiar means "error goal is a DIR" (I think Second: that is what you think me D: \ node \ files \ 11 \ j1_1 \ j1_2 \ j1_3 path path j1_3 to path
d: \ node \ files \ 11 \ j1_1 \
var source = fs.createReadStream (old); Var dest = fs.createWriteStream (newp); Source.pipe (destination); Source.one ('end', function ()) {/ * copied}); Source.on ('Error', function (error) {console.log ("hi"); / * error * /});
events.js: 72 for er; // unwanted 'error' event ^ Error: Iaisdiaiar, open "D: \ node \ files \ 11 \ j1_1 '
Comments
Post a Comment