File: list-dirs.rb

package info (click to toggle)
dhelp 0.6.32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 604 kB
  • sloc: ruby: 1,171; sh: 555; perl: 372; makefile: 77
file content (8 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (4)
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