delorie.com/archives/browse.cgi | search |
From: | "Florian X" <dos DOT fire AT aon DOT at> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <39a95be6$0$16268 AT SSP1NO25 DOT highway DOT telekom DOT at> <7458-Mon28Aug2000061717+0300-eliz AT is DOT elta DOT co DOT il> |
Subject: | Re: funktion access(...) |
Date: | Tue, 29 Aug 2000 12:53:09 +0200 |
X-Newsreader: | Microsoft Outlook Express 4.71.1712.3 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.71.1712.3 |
Lines: | 32 |
Message-ID: | <39ab9667$0$26458@SSP1NO25.highway.telekom.at> |
NNTP-Posting-Host: | 212.183.92.183 |
X-Trace: | newsreader01.vienna.highway.telekom.at 967546471 26458 212.183.92.183 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>> >> 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. I found the bug! It isn't access(). Thank you! so long, florian florian *************************************************************** "Murphy's Love Law #1 All the good ones are taken." Seal - www.seal.de.vu Club Dr-DOS - www.drdos.org Donate the rainforest - www.therainforestsite.com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |