Use UNC paths for shared folders on Windows host

This commit is contained in:
Indrek Ardel 2015-11-05 18:55:34 +02:00
parent f45c5c4536
commit ea66e22d2e
1 changed files with 3 additions and 0 deletions

View File

@ -610,6 +610,9 @@ module VagrantPlugins
def share_folders(folders)
folders.each do |folder|
hostpath = folder[:hostpath]
if Vagrant::Util::Platform.windows?
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
end
args = ["--name",
folder[:name],
"--hostpath",