Method: IsoDoc::Function::ToWordHtml#init_dir
- Defined in:
- lib/isodoc/function/to_word_html.rb
#init_dir(filename, debug) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/isodoc/function/to_word_html.rb', line 32 def init_dir(filename, debug) dir = "#{filename}_files" unless debug Dir.mkdir(dir, 0o777) unless File.exists?(dir) FileUtils.rm_rf "#{dir}/*" end dir end |