From: matt@... (matt neuburg) Date: 2009-03-14T07:52:53+09:00 Subject: Re: File owner attribute method Mmcolli00 Mom wrote: > I want to get the owner attribute of a file from a folder. I have not > found a class that contains a method like this. I have looked in File, > FileUtils and Ftools. Do you have a recommendation? Not sure what an "owner attribute" is, but consider File#stat, perhaps. File::Stat#uid might be what you're looking for: puts File.new("somefile").stat.uid #=> 501 Resolving 501 into a name is a different exercise. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com