-
-
Notifications
You must be signed in to change notification settings - Fork 68
Error when glob matches directory #10
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels