delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/09/14:45:25

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <crzc7.126807$U27 DOT 3826258 AT news DOT chello DOT at>
NNTP-Posting-Host: diup-218-115.inter.net.il (213.8.218.115)
Mime-Version: 1.0
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).

- Raw text -


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