From: Ben Bleything Date: 2010-07-23T05:16:01+09:00 Subject: Re: HowTo get ruby to report a sumbolic link? On Thu, Jul 22, 2010 at 1:08 PM, James Byrne wrote: > Which tells me that the link is there but it is reporting the target > directory and not the link itself.  How do I tell if the thing that I am > checking is a symbolic link to a directory and not the directory itself? 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. Ben