# File lib/vagrant-libvirt/action/share_folders.rb, line 39 def prepare_folders shared_folders.each do |_id, options| hostpath = Pathname.new(options[:hostpath]).expand_path(@env[:root_path]) next unless !hostpath.directory? && options[:create] # Host path doesn't exist, so let's create it. @logger.debug("Host path doesn't exist, creating: #{hostpath}") begin hostpath.mkpath rescue Errno::EACCES raise Vagrant::Errors::SharedFolderCreateFailed, path: hostpath.to_s end end end