delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/11/13:32:12

Date: Thu, 11 Jun 1998 20:31:39 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Mapson <mapson AT mapson DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Changing filenames with DJGPP
In-Reply-To: <357d5a3c.9190552@news.cis.yale.edu>
Message-ID: <Pine.SUN.3.91.980611203000.26077H-100000@is>
MIME-Version: 1.0

On Tue, 9 Jun 1998, Mapson wrote:

> the rather worrisome "__file_exists." I am
> relying pretty heavily on this __file_exists at the moment, and it
> certainly looks good, and is easy, small and quick... one question,
> though: can it reliably be expected to return "exists!" code also when
> it finds a directory?

Yes, it will work for directories as well.

> Also, if someone has any good reasons I shouldn't use
> __file_exists, please let me know- I already know it isn't
> particularly ANSI nor portable, but beside that...

It's only disadvantage is that it is DJGPP-specific, so you won't find it 
anywhere else.  If you care about this, use `access' instead.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019