| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 28 Aug 2000 06:17:18 +0200 |
| From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | dos DOT fire AT aon DOT at |
| Message-Id: | <7458-Mon28Aug2000061717+0300-eliz@is.elta.co.il> |
| X-Mailer: | Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b |
| CC: | djgpp AT delorie DOT com |
| In-reply-to: | <39a95be6$0$16268@SSP1NO25.highway.telekom.at> (dos.fire@aon.at) |
| Subject: | Re: funktion access(...) |
| References: | <39a95be6$0$16268 AT SSP1NO25 DOT highway DOT telekom DOT at> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Florian X" <dos DOT fire AT aon DOT at>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 27 Aug 2000 20:18:59 +0200
>
> l_bool io_isfile ( l_text file )
> {
> if ( access(file, D_OK) && !access(file, F_OK) ) return true;
> return false;
> };
>
> But if I want to use this file f.e. f:\MP3\OSTB~1.MP3 (also with long file
> names !!!)
> io_isfile returns the wrong message (false).
Please post a complete short program that exhibits this behavior.
`access' works correctly for me.
> The file has only the ARCHIVE attribut.
The archive bit is irrelevant here: `access' doesn't test it at all.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |