From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: getting file attributes Date: Thu, 09 Aug 2001 21:38:39 +0300 Lines: 8 Message-ID: <3B72D8AF.33D778D6@is.elta.co.il> References: NNTP-Posting-Host: diup-218-115.inter.net.il (213.8.218.115) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 997382335 6980413 213.8.218.115 (16 [61365]) X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Kurt Aistinger wrote: > > Is there a way how I can determine the attributes of a file with DJGPP? > Actually I want to know if a certain file is a directory. > The _dos_getfileattr() function doesn't support long filenames. > Any suggestions? You could use `stat', `findfirst', or `access' (with the D_OK argument).