Reputation: 24061
I'm getting this error:
Warning: Unable to write file (Error code: EISDIR)
I'm trying to copy all files and sub folders in a directory.
The below works when I omit ** but then none of my files are copied.
Any ideas how to fix the error?
copy: {
main: {
options: {
expand: true
},
files: [
{ src: 'public/static/**', dest: '../../../public/packages/xyz/hello'}
]
}
},
Upvotes: 2
Views: 982
Reputation: 76199
Your dest
is interpreted as a file, but is actually a directory, thus the error. Try postfixing it with a slash:
dest: '../../../public/packages/xyz/hello/'
Upvotes: 6