From: James Coglan Date: 2009-09-21T03:03:26+09:00 Subject: Re: Thread-safe FileUtils.cd --001517503d741f66e70474062ea1 Content-Type: text/plain; charset=ISO-8859-1 2009/9/20 Markus Schirp > The current working process is a global property of the underlaying system > process. > > A system Process has one currency working directory, not two, or more. > > You can do your directory / filename calculations, using the absolute > directory path, without any race conditions. Yes, I realise now I should have forced users to use absolute paths, but as it stands there's code out in the wild with stuff like: hook :after_build do |build| FileUtils.cp 'README', File.join(build.build_dir, 'README') end So the working directory needs to be set so that 'README' can be found correctly. Internally the tool uses absolute paths, so e.g. `build.build_dir` is an absolute path, but code written by users is likely to use relative paths. --001517503d741f66e70474062ea1--