From: James Byrne Date: 2010-07-23T06:26:28+09:00 Subject: Re: HowTo get ruby to report a sumbolic link? Ben Bleything wrote: > > > ri File::Stat tells me that there's a #symlink? method you could use: > > File.stat( @soft_link_target ).should be_symlink > > ... I believe that's the right syntax for rspec, but you get the idea. rdoc also says: As File::stat automatically follows symbolic links, symlink? will always be false for an object returned by File::stat. -- Posted via http://www.ruby-forum.com/.