Home | History | Annotate | Download | only in ruby

Lines Matching refs:dname

310   def mkdir_p( dname, prefix = nil )
311 dname = prefix + dname if prefix
312 $stderr.puts "mkdir -p #{dname}" if verbose?
316 dirs = dname.split(%r_(?=/)_)
404 def dir?( dname )
406 File.directory?( (dname[-1,1] == '/') ? dname : dname + '/' )
409 def all_files( dname )
410 Dir.open( dname ) {|d|
411 return d.find_all {|n| File.file? "#{dname}/#{n}" }
415 def all_dirs( dname )
416 Dir.open( dname ) {|d|
417 return d.find_all {|n| dir? "#{dname}/#{n}" } - %w(. ..)