jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.44k stars 776 forks source link

Cannot create property 'unlink' on string '[]' #939

Closed ansibleguy76 closed 2 years ago

ansibleguy76 commented 2 years ago

When using removeSync, the file is removed but this "silent" error message (see title), is also sent to the console.

RyanZim commented 2 years ago

Any stack trace? Can you post a minimal code example?

ansibleguy76 commented 2 years ago

Sorry... I had a line where I create a file fse.createSync(newfile, mycontent) then I remove the file, but I used the method wrong (copy-paste error on my end) fse.removeSync(newfile, mycontent) => should have been fse.removeSync(newfile)