🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12726

Re: A file is directory

#12726
From: Remy Lebeau (TeamB)
Date: Wed, 19 Nov 2003 06:31
14 lines
1433 bytes
"Sten Larsson" <s_t_enX@Xs_ten_l.com> wrote in message
news:3fbb07d7@newsgroups.borland.com...
> How can I figure out if a path is a directory or a file?

I do not know of the correct way to do it in plain C.  Perhaps the
_rtl_chmod() function, testing for the FA_DIREC flag.  That's all I can
think of.  You did ask this in a Win32 group, though.  In Win32, there is a
GetFileAttributes() function that can tell you what you are asking for.  If
you want a plain C solution, you should ask in the language group instead to
make sure.


Gambit
Technical Details
Message-ID: <3fbb0d69@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fbb07d7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,49b53b5f67858186
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-18 22:39:17 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbb07d7@newsgroups.borland.com>
Subject: Re: A file is directory
Date: Tue, 18 Nov 2003 22:31:35 -0800
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.149
Message-ID: <3fbb0d69@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069223273 67.22.137.149 (18 Nov 2003 22:27:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail