singular hard links
singular hard links
- Subject: singular hard links
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 3 Oct 2005 01:22:44 +0200
When I do:
touch /tmp/a1
ln /tmp/a1 /tmp/a2
rm /tmp/a2
I get a hard link with a link count (NSFileReferenceCount) of 1.
When I do:
touch //tmp/b1
I get a normal file which also has a link count of 1.
Why should I care? Well, firstly because I am curious, and also:
-[NSDocument writeWithBackupToFile: ofType:saveOperation:
NSSaveOperation ] fails for singular hard links.
So I would like to detect this case beforehand.
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden