From: Arlen Cuss Date: 2008-02-20T21:21:10+09:00 Subject: Re: Is there any object-oriented File class in ruby ? ------=_Part_23829_7873178.1203510077096 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Feb 20, 2008 10:54 PM, Peter Hickman wrote: > So you ran ruby on linux (or OSX) and gave it a fully qualified windows > filename, what were you expecting? > > Some magical utility that can take a string and work out what operating > system the filename comes from and then parse that? > > Patches welcome. Taking a quick look at file.c in Ruby's source code, it seems we'd just have to split the function in two (rather than the define mess we have now), and then add a short bit to look for the presence of a start like /[a-zA-Z]:\\/, then use the DOS-like one, otherwise try Unix-like ... Arlen ------=_Part_23829_7873178.1203510077096--