From d68b2a66152070101d51a99bbf2f2648ab3d6335 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 29 Jan 2011 20:50:31 -0800 Subject: [PATCH] Check if data store folder is a directory on Windows works --- lib/vagrant/data_store.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vagrant/data_store.rb b/lib/vagrant/data_store.rb index ca85ddb6f..57f81c073 100644 --- a/lib/vagrant/data_store.rb +++ b/lib/vagrant/data_store.rb @@ -19,13 +19,12 @@ module Vagrant @file_path = file_path return if !file_path + raise Errors::DotfileIsDirectory if File.directory?(file_path) File.open(file_path, "r") do |f| merge!(JSON.parse(f.read)) end rescue Errno::ENOENT clear - rescue Errno::EISDIR - raise Errors::DotfileIsDirectory end # Commits any changes to the data to disk. Even if the data