Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
- Subject: Re: copyPath:toPath:handler: sometimes it works, sometimes it does not?
- From: Stephane Sudre <email@hidden>
- Date: Thu, 25 Mar 2004 17:55:01 +0100
Le jeudi, 25 mar 2004, ` 17:36 Europe/Paris, Fritz Anderson a icrit :
I have had the same problem under 10.3.2 -- an inexplicable "Couldn't
create directory" when duplicating a directory using -[NSFileManager
copyPath:toPath:handler:]. In my case, there were no colons or other
special characters in the file path.
I worked around it by substituting -[NSWorkspace
performFileOperation:source:destination:files:tag:].
This was with user privileges, copying to a subdirectory of /tmp, in
all cases.
The workaround I selected is to use the FSCopyObject sample code from
Apple Web Site.
_______________________________________________
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.