From: Chris Gehlker Date: 2002-03-14T10:34:57+09:00 Subject: Re: Some potential RCRs On 3/13/02 7:03 AM, "Massimiliano Mirra" wrote: > Easier than all would be a call to a Dir.chparent. What I'm concerned > about is, is Dir.chdir('..') going to work on Windows, Mac OS X and > all the platform Ruby runs on? I just tried chdir .. from tcsh on MacOSX and from the DOS prompt on Win98 (running on Virtual PC) and it did the right thing on both systems. Nevertheless, I agree with Massimiliano's larger point about the file management routines being too low level and shell like. I dislike Dir.chparent though. It sounds to me like it means take this branch of the file tree and move it under a different parent, i.e. drag this folder somewhere. How about Dir.parent -- Many individuals have, like uncut diamonds, shining qualities beneath a rough exterior. - Juvenal, poet (c. 60-140)