Sha256: 31bba884977b9666662682927f9d9db92a5b411ecb55433b7bd92fdfafd72de1

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tree.rb-0.3.0 examples/directory_walker/print_files.rb
treevisitor-0.2.3 examples/directory_walker/print_files.rb
treevisitor-0.2.2 examples/directory_walker/print_files.rb
treevisitor-0.2.1 examples/directory_walker/print_files.rb
treevisitor-0.2.0 examples/directory_walker/print_files.rb