From: Massimiliano Mirra Date: 2002-01-12T00:25:04+09:00 Subject: Re: Dir.entries have no home On Fri, Jan 11, 2002 at 11:44:20PM +0900, Ron Jeffries wrote: > def filesUnderManagement > names = (Dir.entries(@directoryName). > select { | each | ! (/.bak/ =~ each) }).sort > names.reject { |each| FileTest.directory?(each) } > end > Have others stumbled over this as well? > What do you do about it? Stumbled over this in rpkg just a couple of days ago and did about the same, i.e.: def RPkg.extract(directory = '.') Dir.chdir(directory) `tar zxf #{@archive}` end Massimiliano