From: James Byrne Date: 2010-07-23T05:08:39+09:00 Subject: HowTo get ruby to report a sumbolic link? I am creating a series of symbolic links to target directories. I wish to check to see if the symbolic link exists or not. When I do this (using rspec): File.stat(@soft_link_target).ftype.should == 'link' I get this: expected: "link", got: "directory" (using ==) 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? -- Posted via http://www.ruby-forum.com/.