search for: foo_fil

Displaying 1 result from an estimated 1 matches for "foo_fil".

Did you mean: foo_all
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...;test/unit'' require ''fileutils'' require ''mydir'' class TC_MyDir_Glob_Class < Test::Unit::TestCase # Helper method to get just the basename of the filename def base(files) files.map{ |f| File.basename(f) } end def setup @foo_files = %w/a.c a.cpp b.c b.h g.rb d/ @bar_files = %w/a.c a2.cpp a3.h a4.rb/ FileUtils.mkdir_p(''foo/bar/baz'') Dir.chdir(''foo''){ @foo_files.each{ |f| FileUtils.touch(f) } } Dir.chdir(''foo/bar''){ @bar_files.each{ |f| FileUt...