From 50c1c0756e3d0ecc67132e6fabddcb899f17b7c8 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sun, 4 Jan 2015 18:06:16 -0500 Subject: [PATCH] Expand file paths relative to the root_path --- plugins/pushes/ftp/push.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pushes/ftp/push.rb b/plugins/pushes/ftp/push.rb index d153ae778..82c4da1e9 100644 --- a/plugins/pushes/ftp/push.rb +++ b/plugins/pushes/ftp/push.rb @@ -20,6 +20,7 @@ module VagrantPlugins files = Hash[*all_files.flat_map do |file| relative_path = relative_path_for(file, config.dir) destination = File.expand_path(File.join(config.destination, relative_path)) + file = File.expand_path(file, env.root_path) [file, destination] end]