javascript - Node.js Error: EISDIR, open Error -


I'm trying to copy one folder by using node.js in the second path here: - < / P>

D: \ node \ files \ 11 \ j1_1 \ j1_2 \ j1_3 path path j1_3 to path d: \ node \ files \ 11 \ j1_1 \

Here my code is: -

  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 * /});   

But I'm getting this error: -

  events.js: 72 for er; // unwanted 'error' event ^ Error: Iaisdiaiar, open "D: \ node \ files \ 11 \ j1_1 '  

I've also tried fs.rename function, but I have a Only get error. First: Iaisdiaiar means "error goal is a DIR" (I think

< P>),

Second: that is what you think me

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -