set modification date of symlink
set modification date of symlink
- Subject: set modification date of symlink
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 20 Jul 2007 12:13:13 +0200
I am trying to set the modification date of a symbolic link.
It seems that [NSFileManager changeFileAttributes:atPath:] traverses
through symbolic links (although this is NOT mentioned in the
documentation).
man symlink(7) says: "The [...] modification time of an existing
symbolic link can be changed by means of the lutimes(2) system call
[...]."
But there is no man lutimes(2) and lutimes() is NOT defined in <sys/
time.h>.
Using lutimes() creates an undefined symbol error while linking.
So: How to set the modification date of symlink?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden