This patch fixes an issue when using rsync folders on windows clients with cygwin & ssh enabled.
This patch fixes an issue when using rsync folders on windows clients with cygwin & ssh enabled.

Before the patch this error will happen if the original directory already exists

-------------------------------------------------------------------------------------------------
==> windows: Rsyncing folder: /vhosts/oxfamshop.com.au/ => /cygdrive/c/inetpub/wwwroot
==> windows:   - Exclude: [".vagrant/", ".git/", "target/", "node_modules/"]
==> windows: Showing rsync output...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mkdir '/cygdrive/c/inetpub/wwwroot'

Stdout from the command:

Stderr from the command:

mkdir: cannot create directory ‘/cygdrive/c/inetpub/wwwroot’: File exists
-------------------------------------------------------------------------------------------------

After the patch, this is result

-------------------------------------------------------------------------------------------------
==> windows: Rsyncing folder: /vhosts/oxfamshop.com.au/ => /cygdrive/c/inetpub/wwwroot
==> windows:   - Exclude: [".vagrant/", ".git/", "target/", "node_modules/"]
==> windows: Showing rsync output...
==> windows: rsync[stdout] -> sending incremental file list
==> windows: rsync[stdout] ->
==> windows: rsync[stdout] -> sent 500855 bytes  received 6635 bytes  78075.38 bytes/sec
==> windows: rsync[stdout] -> total size is 175357552  speedup is 345.54
-------------------------------------------------------------------------------------------------

taliesins/vagrant,bryson/vagrant,chrisroberts/vagrant,PatrickLang/vagrant,crashlytics/vagrant,PatrickLang/vagrant,benh57/vagrant,mitchellh/vagrant,sni/vagrant,crashlytics/vagrant,marxarelli/vagrant,sni/vagrant,bryson/vagrant,chrisroberts/vagrant,marxarelli/vagrant,taliesins/vagrant,sni/vagrant,marxarelli/vagrant,PatrickLang/vagrant,sni/vagrant,mitchellh/vagrant,PatrickLang/vagrant,crashlytics/vagrant,mitchellh/vagrant,mitchellh/vagrant,benh57/vagrant,gitebra/vagrant,bshurts/vagrant,benh57/vagrant,chrisroberts/vagrant,bryson/vagrant,gitebra/vagrant,benh57/vagrant,bshurts/vagrant,bshurts/vagrant,crashlytics/vagrant,taliesins/vagrant,gitebra/vagrant,chrisroberts/vagrant,marxarelli/vagrant,bshurts/vagrant,gitebra/vagrant,bryson/vagrant,taliesins/vagrant