From: Emmanuel Touzery Date: 2002-12-03T00:17:40+09:00 Subject: Re: root directory Hello, For information, the latest functions I sent here to get the parent dir and the root dir using File.split don't work under windows. What's more, File::SEPARATOR is here set to "/" under windows! (I tried with ruby 1.67-4 and 1.67-7 downloaded from http://rubyinstaller.sourceforge.net/). irb(main):005:0> dirUp("c:\\") "." irb(main):006:0> dirUp("c:\\test") "." irb(main):011:0> dirUp("\\\\regy\\share\\test") "." irb(main):012:0> dirUp("\\\\regy\\share\\test\\aa") "." irb(main):013:0> dirUp("\\\\regy\\share\\test\\aa\\fdfhdkfdh") "." irb(main):014:0> File::SEPARATOR "/" emmanuel -- "If someone breaks into my house and steals my CDs, who calls the cops, me or the music industry? If it's me, then that's my property." --Ruben Safir