Re: SymLink duplicating troubles
Re: SymLink duplicating troubles
- Subject: Re: SymLink duplicating troubles
- From: Charles Srstka <email@hidden>
- Date: Sat, 11 May 2002 17:12:45 -0500
On Saturday, May 11, 2002, at 04:55 PM, Lorenzo Puleo wrote:
Hi,
I have some trouble duplicating symLinks.
I would like to obtain an exact copy of a symLink, that is same original
target, same size, same owner, same permissions, same creation,
modification
and backup date and locked flag. But what is working properly for
files, is
not working for symLinks. Why?
1) ==============
I copy the symLink "sourceSymLink" to the
not yet existing destination symLink "destSymLink" this way:
[manager createSymbolicLinkAtPath:destSymLink pathContent:[sourceSymLink
stringByResolvingSymlinksInPath]];
It creates a symLink pointing to the target file properly. It works,
but the
original symLink "sourceSymLink" is 24 bytes
while "destSymLink" is 81 bytes. (!)
Why not just use -[NSFileManager copyPath: toPath:] ?
But I suppose you could use [manager
createSymbolicLinkAtPath:destSymLink pathContent:[manager
pathContentOfSymbolicLinkAtPath:sourceSymLink]];
And why on earth was this specifically addressed to me?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.