From: ts Date: 2001-08-30T23:52:34+09:00 Subject: [ruby-talk:20582] Re: Relative path >>>>> "B" == Barnett, Aaron writes: B> def rel_path(a, b) [...] perhaps you can replace it with B> a.size.times { new_path += '../' } B> b.each { |dir| new_path += dir + '/' } B> new_path '../' * a.size + b.join('/') B> end Guy Decoux