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: Fritz Anderson <email@hidden>
- Date: Thu, 25 Mar 2004 10:36:42 -0600
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.
-- F
On 22 Mar 2004, at 5:28 PM, Stiphane Sudre wrote:
I'm seeing some weird things with the following API:
- (BOOL)copyPath:(NSString *)source toPath:(NSString *)destination
handler:handler
I'm trying to copy a big folder (200 MB) from one location to another.
1) Folders with the following Name can't be copied: "toto:titi"
The error handler is stating that it "Couldn't create directory"
2) Some files in a folder can't be copied when others can. All the
files have the same permissions, owner and group.
The error handler is stating that it "Couldn't create"
I tried to copy the same big folder using cp -RH and the Terminal and
it worked flawlessly.
I'm doing all these operations as root.
I'm wondering if this is a known bug or not (I'm using Mac OS X
10.2.8).
_______________________________________________
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.