lib/cardio/mod/load_strategy/tmp_files.rb in card-1.103.4 vs lib/cardio/mod/load_strategy/tmp_files.rb in card-1.104.0
- old
+ new
@@ -18,10 +18,10 @@
def prepare_tmp_dir path
return unless rewrite_tmp_files?
p = Card.paths[path]
FileUtils.rm_rf p.first, secure: true if p.existent.first
- Dir.mkdir p.first
+ FileUtils.mkdir_p p.first
end
def rewrite_tmp_files?
return @rewrite if defined? @rewrite