class Dir
Constants
- DOTS
Public Class Methods
children( directory )
click to toggle source
# File lib/antlr3/test/core-extensions.rb, line 212 def self.children( directory ) entries = Dir.entries( directory ) - DOTS entries.map! do |entry| File.join( directory, entry ) end end
mkpath( path )
click to toggle source
# File lib/antlr3/test/core-extensions.rb, line 219 def self.mkpath( path ) $VERBOSE and $stderr.puts( "INFO: Dir.mkpath(%p)" % path ) test( ?d, path ) and return( path ) parent = File.dirname( path ) test( ?d, parent ) or mkpath( parent ) Dir.mkdir( path ) return( path ) end