Re: DirWatch
Re: DirWatch
- Subject: Re: DirWatch
- From: Lorenzo <email@hidden>
- Date: Fri, 23 May 2008 01:57:12 +0200
I can't.
Think about the FNSubscribe tells me that there is something new because the
user copied 2 new files into that folder, but only one file is totally
copied, the other one is still in copying. So now I scan the folder with
directoryContentsAtPath
I compare with the previous list and I know that there are 2 new files.
Well, one file is totally copied and the other one could be still in
copying.
Best Regards
--
Lorenzo
email: email@hidden
> From: Jens Alfke <email@hidden>
> Date: Thu, 22 May 2008 16:35:01 -0700
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: DirWatch
>
>
> On 22 May '08, at 3:32 PM, Lorenzo wrote:
>
>> Here I get the notification only "after" a file has been totally
>> copied into
>> the folder, but I can't yet find the way to know which file has been
>> copied.
>> Do you know how to get that info? Thanks.
>
> Just remember the previous list of files as an NSSet, then get the
> current set of files and subtract the old one to see what's new.
>
> Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden