I want to use grunt-contrib-copy (or any other grunt copying plugin) to copy files to network location.
Trying below:
copy: {
test: {
files: [
{ src: ['Scripts/*'], dest: ['\\\\location\\site\\Scripts\'] }
]
}
}
but getting:
Warning: Unable to write "\\location\site\Scripts\" file (Err or code: undefined). Use --force to continue.
Is it possible / How to copy to network location?
Yes, it's quite simple to do, just define your path with forward slashes:
copy: {
test: {
files: [
{ src: ['Scripts/*'], dest: ['//location/site/Scripts/'] }
]
}
}
This will work on windows as-well, grunt will take care of that. Try it out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With