lib/isodoc/function/to_word_html.rb in isodoc-2.0.6 vs lib/isodoc/function/to_word_html.rb in isodoc-2.0.6.1
- old
+ new
@@ -30,10 +30,10 @@
end
def init_dir(filename, debug)
dir = "#{filename}#{@tmpfilesdir_suffix}"
unless debug
- Dir.mkdir(dir, 0o777) unless File.exists?(dir)
+ Dir.mkdir(dir, 0o777) unless File.exist?(dir)
FileUtils.rm_rf "#{dir}/*"
end
dir
end