From: Daniel Berger Date: 2009-02-11T05:05:07+09:00 Subject: Sanity check on File.dirname Hi, I need a quick sanity check. Excepting potential backslashes for the moment, aren't these two identical? File.dirname(path).split('/')[0..-2].join('/') File.dirname(File.dirname(path)) Dan