[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Digest Articles 261154-261275 (11/13) (ruby-talk ML

Todd Benson

7/23/2007 1:45:00 AM

On 7/22/07, Chris Dwan <radixhound@gmail.com> wrote:

>
> That doesn't make any sense! File.exists? is a class method, and if I
> try to do File.open, it will fail because the file doesn't exist, so
> I'll have to catch the exception. It basically means File.exists? is
> useless so I should just use exceptions to handle stuff like this.. ?
>
>

You can't read certain files that exist; like directories, for
example. I'm not sure what Windows XP does for a guest user trying to
read hidden or system files.

Todd