From: Charles Oliver Nutter Date: 2008-09-11T04:10:19+09:00 Subject: Re: FileUtils.chdir thread safety Robert Klemme wrote: > 2008/9/10 Michal Suchanek : >> Also this could possibly be an option - load thread/chdir and now you >> can control if your thread cwds are bound together or not. > > This is a good option. It also carries potential for subtle bugs if > it /redefines/ behavior of Dir.chdir. Maybe better have Thread.chdir > instead which delegates to Thread.current.chdir to keep both separate. I figured Thread.chdir would only operate on the current thread either way, like Thread.stop. And I'd rather not make it possible to change the dir for another thread...that seems like a dangerous idea. - Charlie