From: Joel VanderWerf Date: 2006-02-02T07:23:50+09:00 Subject: Re: check for and if not there, create direcory and file konsu wrote: > hello, > > a related question: how to make this atomic to avoid race conditions: > > Dir.mkdir(".timeclock") unless File.exist?(".timeclock") There is always: require 'fileutils' FileUtils.mkdir_p(".timeclock") -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407