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: Charles Srstka <email@hidden>
- Date: Mon, 22 Mar 2004 22:29:44 -0600
Are any of the files in the folder sockets or FIFO's? In my experience,
copyPath: toPath: handler: chokes on those.
What I do is run through the files and check to make sure they're just
normal files before trying to copy them.
Charles
On Mar 22, 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.
_______________________________________________
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.