From: Kenneth McDonald Date: 2008-10-25T03:21:21+09:00 Subject: Re: How to tell if two paths point to the same file? From the documentation, that seems to compare to different files to see if they have the same content. Thanks for the suggestion, though. Looks like realpath will be it, thanks for the suggestions. Ken On Oct 24, 2008, at 12:34 PM, Nobuyoshi Nakada wrote: > Hi, > > At Sat, 25 Oct 2008 02:25:42 +0900, > Kenneth McDonald wrote in [ruby-talk:318509]: >> I've tried using File.expand_path to normalize path names, but this >> doesn't always seem to give identical results for the same file, if >> one of the involved paths goes through a symbolic link. Is there >> another way to do this? > > File.identical? > > -- > Nobu Nakada >