Re: canceling copyTo:toPath:handler
Re: canceling copyTo:toPath:handler
- Subject: Re: canceling copyTo:toPath:handler
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 7 May 2004 21:53:14 +0100
On 7 May 2004, at 7:50 pm, Milton Sagen wrote:
Is there a way to cancel the operation when the source is a directory
with a hugh number of files in it? Even being able to cancel it
between files would be good.
Wouldn't it be better to find this out before invoking
-copyPath:toPath:handler:? You could do a count of -subpathsAtPath: and
only proceed if it's less than a set number. Alternatively, check that
it's not a directory if you don't want to copy directories at all...
-Regards
-Jeremy
_______________________________________________
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.