[EMAIL PROTECTED] wrote:
> Bonjour,
>  
>      I search for help with Win32::ChangeNotify, is there a way (and a
> example please) on how to know what was the file that have changed?!?  I
> found people talking about a module name: "AdvNotify" that can tell me
> that but I never been able to find the module!!!

I think you're going to have to read the directory before doing the
ChangeNotify and store the pertinent attributes of each file (depending
on what you decide to use for events.  Your best bet would probably
be a hash of arrays with the filename/path being the key and the value
the array of attributes (size, etc).  Then if you get an event you'll
need to re-read the dir and check each file against your hash to see
first if it exists and then if it does if the array info is different.
At the same time, you may want to create a sorted array of matches to see
if the list is shorter and a file was deleted - then compare that array
to a sort of the hash keys to see which file was deleted.

Sorry - no snippet to offer.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to