× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree with Kevin. Call readdir(), then stat(). Stat will tell you what sort of object it is.

There was a thread on the System iNetwork forums discussing how to maximize performance in this sort of scenario. You might be interested in reading it. (make sure you see both pages of the thread, especially my code sample near the end)
http://forums.systeminetwork.com/isnetforums/showthread.php?t=51035


tim wrote:
I am using readdir ext proc. How can I tell if I am reading a directry or a
file


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.