From: charlie bowman Date: 2006-01-31T06:11:38+09:00 Subject: Re: check for and if not there, create direcory and file Thanks for the tip! This is just a personal timekeeper for me. But I will keep that in mind if I need to do any threaded apps. unknown wrote: > On Tue, 31 Jan 2006, Ryan Leavengood wrote: > >> On 1/30/06, ara.t.howard@noaa.gov wrote: >>> >>> one cannot both check and/or create a dir in an atomic fashion. in fact, one >>> cannot even create a dir in an atomic fashion on some filesystems. about the >>> best you can do is >> >> While this is true, I think it only matters when one is dealing with >> multi-process and/or multi-threaded code, which I doubt the original poster >> is. But I know that multi-processing is about all you do Ara, so I guess it >> is hard to forget lessons like this! ;) > > heh - i probably do get a little pedantic with that stuff - but it's so > hard > to debug i just try to avoid it all together! ;-) > > -a -- Posted via http://www.ruby-forum.com/.