lib/nanoc/base/compilation/compiler.rb in nanoc-3.6.9 vs lib/nanoc/base/compilation/compiler.rb in nanoc-3.6.10

- old
+ new

@@ -88,12 +88,13 @@ dependency_tracker.start compile_reps(reps) dependency_tracker.stop store ensure - # Cleanup - FileUtils.rm_rf(Nanoc::Filter::TMP_BINARY_ITEMS_DIR) - FileUtils.rm_rf(Nanoc::ItemRep::TMP_TEXT_ITEMS_DIR) + Nanoc::TempFilenameFactory.instance.cleanup( + Nanoc::Filter::TMP_BINARY_ITEMS_DIR) + Nanoc::TempFilenameFactory.instance.cleanup( + Nanoc::ItemRep::TMP_TEXT_ITEMS_DIR) end # @group Private instance methods # @return [Nanoc::RulesCollection] The collection of rules to be used