Sha256: 519c5a1e428dbec6343327b94d2c89428e9b67fc9c607e263e1336d98574d8c7

Contents?: true

Size: 296 Bytes

Versions: 8

Compression:

Stored size: 296 Bytes

Contents

# -*- coding: utf-8 -*-
cwd = File.expand_path( File.join( File.dirname(__FILE__), "..", "..", "lib" ) )
$:.unshift(cwd) unless $:.include?(cwd)
require 'treevisitor'
include TreeRb

dtw = DirTreeWalker.new( :ignore => ".git" )
dtw.run ".." do
  on_leaf do |pathname|
    puts pathname
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tree.rb-0.3.8 examples/directory_walker/print_files.rb
tree.rb-0.3.7 examples/directory_walker/print_files.rb
tree.rb-0.3.6 examples/directory_walker/print_files.rb
tree.rb-0.3.5 examples/directory_walker/print_files.rb
tree.rb-0.3.4 examples/directory_walker/print_files.rb
tree.rb-0.3.3 examples/directory_walker/print_files.rb
tree.rb-0.3.2 examples/directory_walker/print_files.rb
tree.rb-0.3.1 examples/directory_walker/print_files.rb