🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A file is directory

#12699
From: Rob
Date: Fri, 21 Nov 2003 11:40
10 lines
1393 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? Preferrably in
> plain c (as opposed to Win32).
>

Not possible.   The C library has no standard means of determining
if a file is a directory.  To do this, you always use compiler or
library specific extensions.   The solution suggested by Remy is the
closest you'll get for Borland/Inprise products.
Technical Details
Message-ID: <3fbdfb98@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!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-21 04:00:31 PST
From: "Rob" <nospam@nonexistant.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbb07d7@newsgroups.borland.com>
Subject: Re: A file is directory
Date: Fri, 21 Nov 2003 22:10:42 +1030
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4922.1500
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800
NNTP-Posting-Host: 211.26.115.111
Message-ID: <3fbdfb98@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069415320 211.26.115.111 (21 Nov 2003 03:48:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail