From: Joel VanderWerf Date: 2009-02-06T02:49:06+09:00 Subject: Re: File.delete one-liner Robert Klemme wrote: > 2009/2/4 Julian Leviston : >> File.delete(File.exists?(lockfile) ? lockfile : @lockfile) > > [lockfile, @lockfile].any? {|f| File.delete(f) rescue false} If #delete fails on lockfile for some reason other than ENOENT, this code will try to delete @lockfile. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407