From ruby-talk Wed Dec 22 02:08:22 2010 From: Ken Bloom Date: Wed, 22 Dec 2010 02:08:22 +0000 To: ruby-talk Subject: Re: FileTest.relative? Message-Id: X-MARC-Message: https://marc.info/?l=ruby-talk&m=129298375317815 On Wed, 22 Dec 2010 09:06:04 +0900, Intransition wrote: > On Dec 21, 6:52 pm, Luis Lavena wrote: >> Your code is not contemplating drive letters. > > Good point. On Windows, a path without a drive letter that only starts in a single backslash would be relative (becuase it's relative to the current drive letter.) A double backslash would be an absolute UNC name. -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/