[LC++]Distinguishing between a file and a directory
lloyd at acm.jhu.edu
Fri Jul 16 02:24:01 UTC 2004
Yes, because the argument to open(2) is the pathname, thus you can stat(2) it
and see what kind of file it is.
On Thu, Jul 15, 2004 at 11:16:42AM -0700, Krishna Monian wrote:
> Hi All,
> Is there any way to distinguish whether a file being
> opened is an ordinary file or a directory using the
> information passed to the open system call?
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> This is the Linux C++ Programming List
> : http://lists.linux.org.au/listinfo/tuxcpprogramming List
More information about the tuxCPProgramming