Subject: [ruby-talk:13889] Re: File exist?
From: Dave Thomas <Dave PragmaticProgrammer.com>
Date: Fri, 20 Apr 2001 05:25:16 +0900
References: 13884
In-reply-to: Jim Freeze's message of "Fri, 20 Apr 2001 05:04:24 +0900"
Jim Freeze <jim / freeze.org> writes:
> How do I check for a file's existense via ruby without using
> exceptions?
Would you believe
File.exist?(name)
Have a look at the FileTest module, which is included in class File.
Regards
Dave