From 87f8b68099f7c0842a0a35812a710069720adc17 Mon Sep 17 00:00:00 2001 From: christopher lee Date: Thu, 18 Jan 2018 14:56:07 -0600 Subject: [PATCH] Ensure config directory always exist, seems to be timing issue in rspec --- lib/msf/core/modules/metadata/store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/modules/metadata/store.rb b/lib/msf/core/modules/metadata/store.rb index 3a10a7c8c0af..d2a720e0afb3 100644 --- a/lib/msf/core/modules/metadata/store.rb +++ b/lib/msf/core/modules/metadata/store.rb @@ -104,7 +104,7 @@ def configure_user_store def get_user_store store_dir = ::File.join(Msf::Config.config_directory, "store") - FileUtils.mkdir(store_dir) if !::File.exist?(store_dir) + FileUtils.makedirs(store_dir) if !::File.exist?(store_dir) return ::File.join(store_dir, UserMetaDataFile) end