lib/vagrant-cloudstack/action/sync_folders.rb in vagrant-cloudstack-0.4.0 vs lib/vagrant-cloudstack/action/sync_folders.rb in vagrant-cloudstack-0.4.1

- old
+ new

@@ -45,9 +45,14 @@ # on windows rsync.exe requires cygdrive-style paths if Vagrant::Util::Platform.windows? hostpath = hostpath.gsub(/^(\w):/) { "/cygdrive/#{$1}" } end + # on windows "rsync'ed" files require cygdrive-style paths + if env[:machine].config.vm.guest == :windows + guestpath = guestpath.gsub(/^(.*)$/, '/cygdrive/c\1') + end + env[:ui].info(I18n.t("vagrant_cloudstack.rsync_folder", :hostpath => hostpath, :guestpath => guestpath)) # Create the guest path