Method: IsoDoc::Function::ToWordHtml#init_dir
- Defined in:
- lib/isodoc/function/to_word_html.rb
#init_dir(filename, debug) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/isodoc/function/to_word_html.rb', line 28 def init_dir(filename, debug) dir = "#{filename}#{@tmpfilesdir_suffix}" unless debug FileUtils.mkdir_p(dir) FileUtils.chmod 0o777, dir FileUtils.rm_rf "#{dir}/*" end dir end |