Use UNC paths for shared folders on Windows host
This commit is contained in:
parent
f45c5c4536
commit
ea66e22d2e
|
@ -610,6 +610,9 @@ module VagrantPlugins
|
||||||
def share_folders(folders)
|
def share_folders(folders)
|
||||||
folders.each do |folder|
|
folders.each do |folder|
|
||||||
hostpath = folder[:hostpath]
|
hostpath = folder[:hostpath]
|
||||||
|
if Vagrant::Util::Platform.windows?
|
||||||
|
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
|
||||||
|
end
|
||||||
args = ["--name",
|
args = ["--name",
|
||||||
folder[:name],
|
folder[:name],
|
||||||
"--hostpath",
|
"--hostpath",
|
||||||
|
|
Loading…
Reference in New Issue