> At the BSD layer, getattrlist() is the way to go here, with the > ATTR_CMN_CRTIME attribute.
>From >http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man2/getattrlist.2.html: "Not all volumes support getattrlist(). 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." I would hazard a guess that NTFS volumes don't support this. It's also a complicated API just to get a file time! The more I see of this, the more I think that the Carbon File Manager is the best option. I plan to review my own code in the light of this thread. I'm not sure whether stat returns local times or UTC (it returns local times on Windows). I am often on UTC here so it's not always possible to tell. But, luckily, it is summer :) Paul Sanders. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com