Re: copyPath on different volumes with same name
Re: copyPath on different volumes with same name
- Subject: Re: copyPath on different volumes with same name
- From: Jim Correia <email@hidden>
- Date: Tue, 28 May 2002 09:15:12 -0400
On Tuesday, May 28, 2002, at 08:19 AM, Matt Neuburg wrote:
On Mon, 27 May 2002 22:38:56 +0200, Lorenzo Puleo
<email@hidden> said:
I have to copy a file from the volume "A" placed on the server "X"
to the volume "A" placed on the server "Y".
I would like to use the API
[manager copyPath:source toPath:dest handler:nil];
Yes, I have been wondering about this too. It seems to me that
you're not
going to be able to use that API - that you're going to have to do the
whole thing in Carbon.
<rant>
In the whole area of file handling, Cocoa throws away much of the
brilliant
technology developed over the years at Apple. Here we have a very
clear and
powerful way to distinguish volumes with the same name (the
vRefNum), and
Cocoa ignores this in favor of pathnames. There's a reason why Apple
abandoned pathnames years ago, and this is part of that reason.
</rant>
There should not be a problem using NSFileManager to do this copy.
Even in the case that two volumes have the same user visible name,
their POSIX path (the mount point in /Volumes) will have been made
unique.
Jim
_______________________________________________
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.