On Mar 21, 2010, at 6:01 PM, gMail.com wrote: > Also, the man says that getattrlist and setattrlist don't work on all the > volumes. So, how can I know whether I can call these APIs?
The man page for getattrlist says: > The best way to test whether a volume supports this function is to simply > call it and check the error result. getattrlist() will return ENOTSUP if it > is not supported on a particular volume. The man page for setattrlist says: > Not all volumes support setattrlist(). However, if a volume supports > getattrlist(2), it must also support setattrlist(). See the documentation > for getattrlist(2) for details on how to tell whether a volume supports it. It also says: > The functions are only supported by certain volume format implementations. > For maximum compatibility, client programs should use high-level APIs (such > as the Carbon File Manager) to access file system attributes. These > high-level APIs include logic to emulate file system attributes on volumes > that don't support setattrlist() and fsetattrlist(). Cheers, Ken _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
