File: list-dirs.rb

package info (click to toggle)
dhelp 0.6.31
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 596 kB
  • sloc: ruby: 1,171; sh: 555; perl: 372; makefile: 83
file content (8 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
require 'dhelp'

path = ARGV.shift || Dhelp::DOC_DIR_DATABASE
puts "Opening #{path}"
ddd = Dhelp::DocDirDatabase.open(DBM::READER, path)
ddd.each do |dir, doc_id, title|
  puts "#{dir} -> #{doc_id} (#{title})"
end