• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SymLink duplicating troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >SymLink duplicating troubles (From: Lorenzo Puleo <email@hidden>)

  • Prev by Date: SymLink duplicating troubles
  • Next by Date: Re: CICN resource into NSImage?...familyhandle
  • Previous by thread: SymLink duplicating troubles
  • Next by thread: Re: SymLink duplicating troubles
  • Index(es):
    • Date
    • Thread