jonschlinkert / copy

Copy files using glob patterns. Sync, async, promise or streams. (node.js utility)
MIT License
94 stars 125 forks source link

cwd not working as expected #9

Closed tenub closed 8 years ago

tenub commented 8 years ago

Maybe I'm just confused, but with the following command I expect build/filename.ext to be copied to dist/plugins/filename.ext:

copy(`filename.ext`, `dist/plugins`, { cwd: 'build' }, err => {
    if (err) throw err;
});

Currently nothing is copied.

jonschlinkert commented 8 years ago

this is a duplicate of https://github.com/jonschlinkert/copy/issues/8. I just updated the title, it wasn't clear that it was a duplicate before. working on a fix, thx