I want to use grunt-contrib-copy (or any other grunt copying plugin) to copy files to network location.
Trying below:
copy: {
test: {
to copy files from mac to windows shared directory prepend the destination with smb:
copy: {
test: {
files: [
{ src: ['Scripts/*'], dest: ['smb://location/site/Scripts/'] }
]
}
}
kr, Joachim
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.