Properly create the cache directory (Kali issue)

This commit is contained in:
erwanlr
2013-11-09 11:26:49 +00:00
parent 32cb6f86f4
commit 5e38d68adb
4 changed files with 3 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ class CacheFileStore
# File.directory? for ruby <= 1.9 otherwise,
# it makes more sense to do Dir.exist? :/
unless File.directory?(@storage_path)
Dir.mkdir(@storage_path)
FileUtils.mkdir_p(@storage_path)
end
end

View File

@@ -27,6 +27,7 @@ begin
require 'rbconfig'
require 'pp'
require 'shellwords'
require 'fileutils'
# Third party libs
require 'typhoeus'
require 'json'