vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/install.rb
### Make the specified dirs (which can be a String or an Array of Strings)
### with the specified mode.
Make the specified dirs (which can be a String or an Array of Strings)
with the specified mode.
Make the specified dirs ( which can be a String or an Array of Strings ) with the specified mode .
def makedirs( dirs, mode=0755, verbose=false )
		dirs = [ dirs ] unless dirs.is_a? Array
		oldumask = File::umask
		File::umask( 0777 - mode )
		for dir in dirs
			if @ftools == File
				File::mkpath( dir, $verbose )
			else
				$stderr.puts "Make path %s with mode %o" % [ dir, mode ]
			end
		end
		File::umask( oldumask )
	end
def makedirs ( dirs , mode = 0755 , verbose = false ) dirs = [ dirs ] unless dirs . is_a? Array oldumask = File :: umask File :: umask ( 0777 - mode ) for dir in dirs if @ftools == File File :: mkpath ( dir , $verbose ) else $stderr . puts "Make path %s with mode %o" % [ dir , mode ] end end File :: umask ( oldumask ) end
Make the specified dirs (which can be a String or an Array of Strings)
with the specified mode.
Make the specified dirs ( which can be a String or an Array of Strings ) with the specified mode .
dirs
mode
verbose