List directory tree
- Dir
- glob
if ARGV.size != 1
puts "Needs path to directory"
exit 1
end
path = ARGV[0]
dr = Dir.glob("#{path}/**/*")
dr.each { |name| puts name }
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
if ARGV.size != 1
puts "Needs path to directory"
exit 1
end
path = ARGV[0]
dr = Dir.glob("#{path}/**/*")
dr.each { |name| puts name }