Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get type of a file using Core foundation APIs ...




Le 7 avr. 08 à 13:40, Kedar Potdar a écrit :
Hi,

How can i get information about type of the a file (Whether it is file, link, directory) using Core Foundation API?

I know that i can also get it by using POSIX function fstat().

Regards,
--
Kedar.

Don't know why you want to avoid POSIX API, but have a look at CFURLCreatePropertyFromResource();


I didn't try, but I think you can use S_IFLNK, S_IFDIR, and other sys/ stat.h macros on the POXIS mode (kCFURLFilePOSIXMode) returned by this method.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >How to get type of a file using Core foundation APIs ... (From: "Kedar Potdar" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.