From 0d085fd829829a3bad14079323c13fdc2994fa1f Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 30 Apr 2017 20:27:01 +0200 Subject: [PATCH] cache_dir must be created recursively. Signed-off-by: Thomas Hochstein --- lib/filters/dejure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters/dejure.rb b/lib/filters/dejure.rb index db55e7c..85af81e 100644 --- a/lib/filters/dejure.rb +++ b/lib/filters/dejure.rb @@ -113,7 +113,7 @@ module Nanoc::Filters def cache_write (input,output,cache_dir=CACHEDIR) # create cache_dir, if necessary - Dir.mkdir(cache_dir) if !File.exist?(cache_dir) + FileUtils.mkdir_p(cache_dir) if !File.exist?(cache_dir) # write output to cache file cache_file = cache_dir + '/' + cache_filename(input) if File.directory?(cache_dir)