🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A file is directory

#12729
From: Andrue Cope
Date: Wed, 19 Nov 2003 09:31
12 lines
1353 bytes
Sten Larsson,

> How can I figure out if a path is a directory or a file? Preferrably in
> plain c (as opposed to Win32).
>

If you don't want an API based answer then you shouldn't ask in the 
NATIVEAPI section. .LANGUAGE.CPP would be more appropriate. I would have 
thought that stat() would give you the information that you wanted.
--
Andrue Cope
[Bicester, UK]
Technical Details
Message-ID: <VA.00001fff.001208d2@email.address.sorry>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.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-19 01:40:02 PST
Date: Wed, 19 Nov 2003 09:31:37 GMT
Newsgroups: borland.public.cppbuilder.nativeapi
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va
Message-ID: <VA.00001fff.001208d2@email.address.sorry>
Subject: Re: A file is directory
From: Andrue Cope <not.a.valid@email.address.sorry>
Reply-To: not.a.valid@email.address.sorry
References: <3fbb07d7@newsgroups.borland.com>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1069234392 217.207.223.34 (19 Nov 2003 01:33:12 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail