Properly create the cache directory (Kali issue)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
cache/*
|
cache
|
||||||
coverage
|
coverage
|
||||||
.bundle
|
.bundle
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
4
cache/.gitignore
vendored
4
cache/.gitignore
vendored
@@ -1,4 +0,0 @@
|
|||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
@@ -24,7 +24,7 @@ class CacheFileStore
|
|||||||
# File.directory? for ruby <= 1.9 otherwise,
|
# File.directory? for ruby <= 1.9 otherwise,
|
||||||
# it makes more sense to do Dir.exist? :/
|
# it makes more sense to do Dir.exist? :/
|
||||||
unless File.directory?(@storage_path)
|
unless File.directory?(@storage_path)
|
||||||
Dir.mkdir(@storage_path)
|
FileUtils.mkdir_p(@storage_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ begin
|
|||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
require 'pp'
|
require 'pp'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
|
require 'fileutils'
|
||||||
# Third party libs
|
# Third party libs
|
||||||
require 'typhoeus'
|
require 'typhoeus'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|||||||
Reference in New Issue
Block a user