🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5201

Re: File Change Notification

#5201
From: Vladimir Stefanovic
Date: Sat, 27 Aug 2005 19:54
34 lines
1975 bytes
> [...] But I may be monitoring hundreds or thousands of files and to do a 
> file search in a path to see which
> file has changed is going to be too time consuming.

Hmm... I don't know if such techique exists...

I have some projects that monitors specified folder
(and subfolders) for changes, and then I look what
file(s) is(are) changed.

I haven't found any time-delay problems.

I hold the previous files state (file size or file attributes) in
INI file and then compare it with changed once.

I suppose that the notification module you have is a
class, so can you make a couple of notification objects
(not only one) which will decrese the number of files to
monitor?

The problem I had with *all* change notification classes
I found so far was that the event is trigered *multiple*
times for one event ?!...

In practise, that means, when I have to do something (when
the change arrises), my processing code is executed multiple
times for the same set of data.




-- 
Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <4310c4bf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.germany.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43104b16$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7eb52702e05f5583
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43104b16$1@newsgroups.borland.com>
Subject: Re: File Change Notification
Date: Sat, 27 Aug 2005 21:54:12 +0200
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 82.117.212.65
Message-ID: <4310c4bf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125172415 82.117.212.65 (27 Aug 2005 12:53:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.germany.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail