Currently it throws an error (EISDIR) when the glob matches a directory. I want to copy all files and directory structure to another directory. I am using cpy(['**/*'], '../output/dist', { cwd: 'assets', parents: true }, cb);
. This does not work since **/*
also matches the directory names.
I could make a PR to fix this if you know what behavior we should have. Should we just ignore empty directories or create them? I'm currently leaning toward creating any directories, which I think is the most intuitive.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too