mdc/bin/notes_handling.rb
##
# Parse the given directory and generate html structure
# @param [String] source the source directory
# @param [String] target the target directory
Parse the given directory and generate html structure
Parse the given directory and generate html structure
def make_index(dest_dir, folder)
    return if folder.folders.count.zero? && folder.files.count.zero?
    Dir.mkdir(dest_dir) unless Dir.exist?(dest_dir)
    io = File.new(dest_dir + '/' + 'index.html', 'w')
    renderer = Rendering::RendererHTMLNote.new(io, '', '', '',
                                               '', [], [], folder.title)
    folder >> renderer
    io.close
  end
def make_index ( dest_dir , folder ) return if folder . folders . count . zero? && folder . files . count . zero? Dir . mkdir ( dest_dir ) unless Dir . exist? ( dest_dir ) io = File . new ( dest_dir + '/' + 'index.html' , 'w' ) renderer = Rendering :: RendererHTMLNote . new ( io , '' , '' , '' , '' , [ ] , [ ] , folder . title ) folder >> renderer io . close end
Parse the given directory and generate html structure
Parse the given directory and generate html structure
dest_dir
<not_specific>
folder
<not_specific>
<not_specific>
target the target directory
target the target directory