From: Robert Klemme Date: 2008-10-23T14:53:28+09:00 Subject: Re: Cygwin: Dir.glob ALWAYS accesses floppy?? On 22.10.2008 20:05, Hugh Sasse wrote: > Following up to myself, but anyway: > > On Wed, 22 Oct 2008, Hugh Sasse wrote: > >> On Wed, 22 Oct 2008, Robert Klemme wrote: >> >>> 2008/10/21 Hugh Sasse : >> strace ruby -e 'puts Dir["/cygdrive/c/*{.txt,.bat}"]' >> doesn't touch the A drive. I wonder. I'll have to strace the >> program I'm running, itself. Probably something messes with the >> definition of glob. > > I've not done this yet, partly because there is a Huge amount of output > from strace, and I'm not entirely sure what to search for, but partly > because I have investigated other things I would be searching for "/cygdrive/a" and see what you get. If that fails, I'd probably search for "/cygdrive" only and then for IO calls ("open" and the like). >>> hint what causes the floppy access. The only other thing that comes to >>> mind is a virus scanner that for some reason during drive accesses >>> checks the floppy. >> Does Symantec Endpoint Protection do that? Why not for the short >> example? It will take me a while to figure that out! > > No closer to finding out about that. No traces in documentation about handling of removable disks? > The globbing on my Windows XP system took over a day. I'm thinking of > rewriting that bit using File.find. I've also found that I can't kill it > with while it is globbing. :-) Kind regards robert