Only convert path if windows access is granted

This commit is contained in:
Chris Roberts 2017-05-12 14:14:11 -07:00
parent 5d83c03bfc
commit 6de7c9b445
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ module Vagrant
# @param [String, Pathname] path Path to convert
# @return [String]
def wsl_to_windows_path(path)
if wsl?
if wsl? && wsl_windows_access?
if wsl_path?(path)
parts = path.split("/")
parts.delete_if(&:empty?)