From: Hugh Sasse Date: 2008-10-22T06:26:13+09:00 Subject: Re: Cygwin: Dir.glob ALWAYS accesses floppy?? On Wed, 22 Oct 2008, Victor H. Goff III wrote: > If cygwin is installed on your c drive, then you will want to avoid > certain directories during your traversal. > > Linux / Unix / Cygwin has a directory that is responsible for your > devices, and they are all 'files'. This would be the reason. > > In the case of Cygwin, you will want to avoid your c:\cygwin\dev > directory which should map to /dev I'm avoiding that, I'm doing Dir.["/cygdrive/c/Documents and Settings/hgs/**/*{.rb,.pl,.txt}"] which should not go near /dev or /cygdrive/a. If I break that up to not use ** but glob each directory in turn, the A: drive gets hammered with activity, one hit per glob. This is on WinXP SP3, by the way. I'm at a loss to account for this.... Thank you, Hugh >