Under Unix, you could do File.stat on each and see if ino and dev are 
the same.
-- 
Posted via http://www.ruby-forum.com/.